Form for plugins settingsn
This commit is contained in:
parent
226ff3ce70
commit
605281d561
|
@ -43,6 +43,42 @@ div.sidebar .nav-item span.oi {
|
||||||
padding-right: 5px;
|
padding-right: 5px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/*
|
||||||
|
PLUGINS
|
||||||
|
*/
|
||||||
|
.plugin-form label {
|
||||||
|
display: block;
|
||||||
|
margin-top: 1rem !important;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plugin-form input[type="text"],
|
||||||
|
.plugin-form textarea,
|
||||||
|
.plugin-form select {
|
||||||
|
display: block;
|
||||||
|
width: 100%;
|
||||||
|
padding: .375rem .75rem;
|
||||||
|
font-size: 1rem;
|
||||||
|
line-height: 1.5;
|
||||||
|
color: #495057;
|
||||||
|
background-color: #fff;
|
||||||
|
background-clip: padding-box;
|
||||||
|
border: 1px solid #ced4da;
|
||||||
|
border-radius: .25rem;
|
||||||
|
transition: border-color .15s ease-in-out,box-shadow .15s ease-in-out;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plugin-form textarea {
|
||||||
|
min-height: 120px;
|
||||||
|
}
|
||||||
|
|
||||||
|
.plugin-form span.tip {
|
||||||
|
display: block;
|
||||||
|
font-size: 80%;
|
||||||
|
font-weight: 400;
|
||||||
|
margin-top: .25rem;
|
||||||
|
color: #6c757d !important;
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
NEW CONTENT / EDIT CONTENT
|
NEW CONTENT / EDIT CONTENT
|
||||||
*/
|
*/
|
||||||
|
|
|
@ -1,11 +1,10 @@
|
||||||
<?php
|
<?php defined('BLUDIT') or die('Bludit CMS.');
|
||||||
|
|
||||||
HTML::title(array('title'=>$plugin->name(), 'icon'=>'puzzle-piece'));
|
echo Bootstrap::pageTitle(array('title'=>$plugin->name(), 'icon'=>'person'));
|
||||||
|
|
||||||
HTML::formOpen(array('id'=>'jsformplugin'));
|
echo Bootstrap::formOpen(array('class'=>'plugin-form'));
|
||||||
|
|
||||||
// Security token
|
echo Bootstrap::formInputHidden(array(
|
||||||
HTML::formInputHidden(array(
|
|
||||||
'name'=>'tokenCSRF',
|
'name'=>'tokenCSRF',
|
||||||
'value'=>$Security->getTokenCSRF()
|
'value'=>$Security->getTokenCSRF()
|
||||||
));
|
));
|
||||||
|
@ -14,11 +13,12 @@ HTML::formOpen(array('id'=>'jsformplugin'));
|
||||||
echo $plugin->form();
|
echo $plugin->form();
|
||||||
|
|
||||||
if ($plugin->formButtons()) {
|
if ($plugin->formButtons()) {
|
||||||
// Form buttons
|
echo '
|
||||||
echo '<div class="uk-form-row uk-margin-bottom">
|
<div class="form-group mt-4">
|
||||||
<button class="uk-button uk-button-primary" type="submit">'.$L->g('Save').'</button>
|
<button type="submit" class="btn btn-primary mr-2" name="save">'.$L->g('Save').'</button>
|
||||||
<a class="uk-button" href="'.HTML_PATH_ADMIN_ROOT.'plugins">'.$L->g('Cancel').'</a>
|
<a class="btn btn-secondary" href="'.HTML_PATH_ADMIN_ROOT.'plugins" role="button">'.$L->g('Cancel').'</a>
|
||||||
</div>';
|
</div>
|
||||||
|
';
|
||||||
}
|
}
|
||||||
|
|
||||||
HTML::formClose();
|
echo Bootstrap::formClose();
|
||||||
|
|
|
@ -16,7 +16,7 @@ class pluginAbout extends Plugin {
|
||||||
|
|
||||||
$html = '<div>';
|
$html = '<div>';
|
||||||
$html .= '<label>'.$Language->get('Label').'</label>';
|
$html .= '<label>'.$Language->get('Label').'</label>';
|
||||||
$html .= '<input id="jslabel" name="label" type="text" value="'.$this->getValue('label').'">';
|
$html .= '<input name="label" type="text" value="'.$this->getValue('label').'">';
|
||||||
$html .= '<span class="tip">'.$Language->get('This title is almost always used in the sidebar of the site').'</span>';
|
$html .= '<span class="tip">'.$Language->get('This title is almost always used in the sidebar of the site').'</span>';
|
||||||
$html .= '</div>';
|
$html .= '</div>';
|
||||||
|
|
||||||
|
|
|
@ -10,7 +10,7 @@ Search and select a page
|
||||||
not implementd
|
not implementd
|
||||||
|
|
||||||
- manage->users->edit user
|
- manage->users->edit user
|
||||||
not implementd
|
Change profile image
|
||||||
|
|
||||||
- add more users roles
|
- add more users roles
|
||||||
|
|
||||||
|
@ -18,3 +18,7 @@ not implementd
|
||||||
not implemented
|
not implemented
|
||||||
|
|
||||||
- if you are editing a page autosave, the autosave need to be the same
|
- if you are editing a page autosave, the autosave need to be the same
|
||||||
|
|
||||||
|
- new content -> options -> Advanced
|
||||||
|
-- date, javascript for select the date
|
||||||
|
--
|
Loading…
Reference in New Issue