76 lines
2.1 KiB
HTML
76 lines
2.1 KiB
HTML
<?= Form::ajax('onDuplicateTheme', [
|
|
'id' => 'themeDuplicateForm',
|
|
'data-popup-load-indicator' => true,
|
|
]) ?>
|
|
|
|
<input type="hidden" name="theme" value="<?= $themeDir ?>" />
|
|
|
|
<div class="modal-header">
|
|
<button type="button" class="close" data-dismiss="popup">×</button>
|
|
<h4 class="modal-title">Duplicate theme: <?= $themeDir ?></h4>
|
|
</div>
|
|
|
|
<?php if (!$this->fatalError): ?>
|
|
|
|
<div class="modal-body">
|
|
|
|
<div class="form-group text-field span-full">
|
|
<label for="Form-ThemeDuplicate-newDirName">
|
|
Theme directory
|
|
</label>
|
|
<input
|
|
type="text"
|
|
name="new_dir_name"
|
|
id="Form-ThemeDuplicate-newDirName"
|
|
value="<?= $themeDir ?>"
|
|
placeholder=""
|
|
class="form-control"
|
|
autocomplete="off"
|
|
maxlength="255" />
|
|
|
|
<p class="help-block">
|
|
Provide a new directory name for the duplicated theme.
|
|
</p>
|
|
</div>
|
|
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button
|
|
type="submit"
|
|
class="btn btn-success">
|
|
Duplicate
|
|
</button>
|
|
|
|
<button
|
|
type="button"
|
|
class="btn btn-default"
|
|
data-dismiss="popup">
|
|
<?= e(trans('backend::lang.form.cancel')) ?>
|
|
</button>
|
|
</div>
|
|
|
|
<?php else: ?>
|
|
|
|
<div class="modal-body">
|
|
<p class="flash-message static error"><?= e(trans($this->fatalError)) ?></p>
|
|
</div>
|
|
<div class="modal-footer">
|
|
<button
|
|
type="button"
|
|
class="btn btn-default"
|
|
data-dismiss="popup">
|
|
<?= e(trans('backend::lang.form.close')) ?>
|
|
</button>
|
|
</div>
|
|
|
|
<?php endif ?>
|
|
|
|
<script>
|
|
setTimeout(
|
|
function(){ $('#themeDuplicateForm input.form-control:first').focus() },
|
|
310
|
|
)
|
|
</script>
|
|
|
|
<?= Form::close() ?>
|