feat: VivesPOS landing on Winter CMS 1.2 — theme + plugin + Dockerfile
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
Some checks are pending
Module sub-split / Sub-split (push) Waiting to run
- Base: wintercms/winter branch 1.2 (full framework) - Theme vivespos: Canvas 7 + Bootstrap 5 CDN, custom CSS - Layout: deferred GTM/GA4 tracking, JSON-LD SoftwareApplication - Partials: hero (offline-first), features, modes (offline/nube toggle), screenshots, pricing (3 planes), comparison, FAQ, CTA - Plugin VivesPOS.Site with ContactForm - Dockerfile: PHP 8.2 Apache, port 80, healthcheck - Added winter/wn-pages, blog, sitemap, seo plugins - Active theme set to vivespos
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
<?= Form::ajax($this->getEventHandler('onApplyName'), [
|
||||
'success' => "\$el.trigger('close.oc.popup'); \$('#".$listId."').trigger('mediarefresh');",
|
||||
'data-stripe-load-indicator' => 1,
|
||||
'id' => 'media-rename-popup-form'
|
||||
]) ?>
|
||||
<div class="modal-header">
|
||||
<button type="button" class="close" data-dismiss="popup">×</button>
|
||||
<h4 class="modal-title"><?= e(trans('backend::lang.media.rename_popup_title')) ?></h4>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="form-group">
|
||||
<label><?= e(trans('backend::lang.media.rename_new_name')) ?></label>
|
||||
<input
|
||||
type="text"
|
||||
name="name"
|
||||
value="<?= e($name) ?>"
|
||||
class="form-control"
|
||||
autocomplete="off"
|
||||
default-focus />
|
||||
</div>
|
||||
|
||||
<input type="hidden" name="originalName" value="<?= e($name) ?>">
|
||||
<input type="hidden" name="type" value="<?= e($type) ?>">
|
||||
<input type="hidden" name="originalPath" value="<?= e($originalPath) ?>" />
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button
|
||||
type="submit"
|
||||
class="btn btn-primary">
|
||||
<?= e(trans('backend::lang.form.apply')) ?>
|
||||
</button>
|
||||
<button
|
||||
type="button"
|
||||
class="btn btn-default"
|
||||
data-dismiss="popup">
|
||||
<?= e(trans('backend::lang.form.cancel')) ?>
|
||||
</button>
|
||||
</div>
|
||||
<script>
|
||||
setTimeout(
|
||||
function(){ $('#media-rename-popup-form input.form-control').focus() },
|
||||
310
|
||||
)
|
||||
|
||||
$('#media-rename-popup-form').on('oc.beforeRequest', function(ev){
|
||||
var originalName = $('#media-rename-popup-form [name=originalName]').val(),
|
||||
newName = $.trim($('#media-rename-popup-form [name=name]').val())
|
||||
|
||||
if (originalName == newName || newName.length == 0) {
|
||||
alert('Please enter a new name')
|
||||
|
||||
ev.preventDefault()
|
||||
}
|
||||
})
|
||||
</script>
|
||||
<?= Form::close() ?>
|
||||
Reference in New Issue
Block a user