forked from artefactual/atom
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Changed rename modal to a page. refs #8759
Changed the rename modal to a page to simplify code.
- Loading branch information
Showing
9 changed files
with
156 additions
and
220 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
53 changes: 0 additions & 53 deletions
53
apps/qubit/modules/informationobject/templates/_renameModal.php
This file was deleted.
Oops, something went wrong.
64 changes: 64 additions & 0 deletions
64
apps/qubit/modules/informationobject/templates/renameSuccess.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
<?php decorate_with('layout_2col.php') ?> | ||
|
||
<?php $sf_response->addJavaScript('rename'); ?> | ||
<?php $sf_response->addJavaScript('description'); ?> | ||
|
||
<?php slot('sidebar') ?> | ||
|
||
<?php include_component('repository', 'contextMenu') ?> | ||
|
||
<?php end_slot() ?> | ||
|
||
<?php slot('title') ?> | ||
|
||
<h1><?php echo __('Rename') ?>: <?php echo $resource->title ?></h1> | ||
|
||
<?php end_slot() ?> | ||
|
||
<?php slot('content') ?> | ||
|
||
<div id="content" class="yui-panel"> | ||
|
||
<div class="fieldset-wrapper"> | ||
|
||
<?php echo $form->renderFormTag(url_for(array('module' => 'informationobject', 'action' => 'rename', 'slug' => $resource->slug)), array('id' => 'rename-form')) ?> | ||
|
||
<div class="alert"><?php echo __('Use this interface to update the description title, slug (permalink), and/or digital object filename.') ?></div> | ||
|
||
<div class="rename-form-field-toggle"><input id="rename_enable_title" type="checkbox" checked="checked" /> <?php echo __('Update title') ?></div> | ||
<br /> | ||
|
||
<?php echo render_field($form->title | ||
->label(__('Title')) | ||
->help(__('Editing the description title will automatically update the slug field if the "Update slug" checkbox is selected - you can still edit it after.'))) ?> | ||
|
||
<div class="rename-form-field-toggle"><input id="rename_enable_slug" type="checkbox" checked="checked" /> <?php echo __('Update slug') ?></div> | ||
<br /> | ||
|
||
<?php echo render_field($form->slug | ||
->label(__('Slug')) | ||
->help(__('Do not use any special characters or spaces in the slug - only lower case alphanumeric characters (a-z, 0-9) and dashes (-) will be saved. Other characters will be stripped out or replaced. Editing the slug will not automatically update the other fields.')), $resource) ?> | ||
|
||
<?php if (count($resource->digitalObjects) > 0): ?> | ||
|
||
<div class="rename-form-field-toggle"><input id="rename_enable_filename" type="checkbox" /> <?php echo __('Update filename') ?></div> | ||
<br /> | ||
|
||
<?php echo render_field($form->filename | ||
->label(__('Filename')) | ||
->help(__('Do not use any special characters or spaces in the filename - only lower case alphanumeric characters (a-z, 0-9) and dashes (-) will be saved. Other characters will be stripped out or replaced. Editing the filename will not automatically update the other fields.')), $resource) ?> | ||
|
||
<?php endif; ?> | ||
|
||
<section class="actions"> | ||
<ul> | ||
<li><a href="#" id="rename-form-submit" class="c-btn c-btn-submit"><?php echo __('Update') ?></a></li> | ||
<li><?php echo link_to(__('Cancel'), array('module' => 'informationobject', 'action' => 'browse'), array('class' => 'c-btn c-btn-delete')) ?></li> | ||
</ul> | ||
</section> | ||
|
||
</form> | ||
</div> | ||
</div> | ||
|
||
<?php end_slot() ?> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.