mirror of
https://github.com/joomla/joomla-cms.git
synced 2024-07-01 01:23:43 +00:00
Format field edit layout
This commit is contained in:
parent
a726103f80
commit
270643a6ed
|
@ -210,123 +210,115 @@
|
|||
|
||||
<fields name="params" label="COM_FIELDS_FIELD_BASIC_LABEL">
|
||||
<fieldset name="basic">
|
||||
<fieldset name="formoptions" label="COM_FIELDS_FIELD_FORMOPTIONS_HEADING">
|
||||
<field
|
||||
name="hint"
|
||||
type="text"
|
||||
label="COM_FIELDS_FIELD_PLACEHOLDER_LABEL"
|
||||
description="COM_FIELDS_FIELD_PLACEHOLDER_DESC"
|
||||
size="40"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="formoptions"
|
||||
type="note"
|
||||
label="COM_FIELDS_FIELD_FORMOPTIONS_HEADING"
|
||||
/>
|
||||
<field
|
||||
name="class"
|
||||
type="textarea"
|
||||
label="COM_FIELDS_FIELD_CLASS_LABEL"
|
||||
size="40"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="hint"
|
||||
type="text"
|
||||
label="COM_FIELDS_FIELD_PLACEHOLDER_LABEL"
|
||||
description="COM_FIELDS_FIELD_PLACEHOLDER_DESC"
|
||||
size="40"
|
||||
/>
|
||||
<field
|
||||
name="label_class"
|
||||
type="textarea"
|
||||
label="COM_FIELDS_FIELD_LABEL_FORM_CLASS_LABEL"
|
||||
size="40"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="class"
|
||||
type="textarea"
|
||||
label="COM_FIELDS_FIELD_CLASS_LABEL"
|
||||
size="40"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="label_class"
|
||||
type="textarea"
|
||||
label="COM_FIELDS_FIELD_LABEL_FORM_CLASS_LABEL"
|
||||
size="40"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="show_on"
|
||||
type="list"
|
||||
label="COM_FIELDS_FIELD_SHOW_ON_LABEL"
|
||||
default=""
|
||||
>
|
||||
<option value="1">COM_FIELDS_FIELD_SHOW_ON_SITE</option>
|
||||
<option value="2">COM_FIELDS_FIELD_SHOW_ON_ADMIN</option>
|
||||
<option value="">COM_FIELDS_FIELD_SHOW_ON_BOTH</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="renderoptions"
|
||||
type="note"
|
||||
label="COM_FIELDS_FIELD_RENDEROPTIONS_HEADING"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="render_class"
|
||||
type="textarea"
|
||||
label="COM_FIELDS_FIELD_RENDER_CLASS_LABEL"
|
||||
size="40"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="showlabel"
|
||||
type="radio"
|
||||
label="COM_FIELDS_FIELD_SHOWLABEL_LABEL"
|
||||
class="switcher"
|
||||
default="1"
|
||||
<field
|
||||
name="show_on"
|
||||
type="list"
|
||||
label="COM_FIELDS_FIELD_SHOW_ON_LABEL"
|
||||
default=""
|
||||
>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
<option value="1">COM_FIELDS_FIELD_SHOW_ON_SITE</option>
|
||||
<option value="2">COM_FIELDS_FIELD_SHOW_ON_ADMIN</option>
|
||||
<option value="">COM_FIELDS_FIELD_SHOW_ON_BOTH</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="label_render_class"
|
||||
type="textarea"
|
||||
label="COM_FIELDS_FIELD_LABEL_RENDER_CLASS_LABEL"
|
||||
size="40"
|
||||
showon="showlabel:1"
|
||||
/>
|
||||
</fieldset>
|
||||
<fieldset name="renderoptions" label="COM_FIELDS_FIELD_RENDEROPTIONS_HEADING">
|
||||
|
||||
<field
|
||||
name="display"
|
||||
type="list"
|
||||
label="COM_FIELDS_FIELD_DISPLAY_LABEL"
|
||||
default="2"
|
||||
>
|
||||
<option value="1">COM_FIELDS_FIELD_DISPLAY_AFTER_TITLE</option>
|
||||
<option value="2">COM_FIELDS_FIELD_DISPLAY_BEFORE_DISPLAY</option>
|
||||
<option value="3">COM_FIELDS_FIELD_DISPLAY_AFTER_DISPLAY</option>
|
||||
<option value="0">COM_FIELDS_FIELD_DISPLAY_NO_DISPLAY</option>
|
||||
</field>
|
||||
<field
|
||||
name="render_class"
|
||||
type="textarea"
|
||||
label="COM_FIELDS_FIELD_RENDER_CLASS_LABEL"
|
||||
size="40"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="prefix"
|
||||
type="text"
|
||||
label="COM_FIELDS_FIELD_PREFIX_LABEL"
|
||||
size="40"
|
||||
/>
|
||||
<field
|
||||
name="showlabel"
|
||||
type="radio"
|
||||
label="COM_FIELDS_FIELD_SHOWLABEL_LABEL"
|
||||
class="switcher"
|
||||
default="1"
|
||||
>
|
||||
<option value="0">JHIDE</option>
|
||||
<option value="1">JSHOW</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="suffix"
|
||||
type="text"
|
||||
label="COM_FIELDS_FIELD_SUFFIX_LABEL"
|
||||
size="40"
|
||||
/>
|
||||
<field
|
||||
name="label_render_class"
|
||||
type="textarea"
|
||||
label="COM_FIELDS_FIELD_LABEL_RENDER_CLASS_LABEL"
|
||||
size="40"
|
||||
showon="showlabel:1"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="layout"
|
||||
type="fieldLayout"
|
||||
label="COM_FIELDS_FIELD_LAYOUT_LABEL"
|
||||
description="COM_FIELDS_FIELD_LAYOUT_DESC"
|
||||
class="custom-select"
|
||||
/>
|
||||
<field
|
||||
name="display"
|
||||
type="list"
|
||||
label="COM_FIELDS_FIELD_DISPLAY_LABEL"
|
||||
default="2"
|
||||
>
|
||||
<option value="1">COM_FIELDS_FIELD_DISPLAY_AFTER_TITLE</option>
|
||||
<option value="2">COM_FIELDS_FIELD_DISPLAY_BEFORE_DISPLAY</option>
|
||||
<option value="3">COM_FIELDS_FIELD_DISPLAY_AFTER_DISPLAY</option>
|
||||
<option value="0">COM_FIELDS_FIELD_DISPLAY_NO_DISPLAY</option>
|
||||
</field>
|
||||
|
||||
<field
|
||||
name="display_readonly"
|
||||
type="list"
|
||||
label="JFIELD_DISPLAY_READONLY_LABEL"
|
||||
description="JFIELD_DISPLAY_READONLY_DESC"
|
||||
default="2"
|
||||
>
|
||||
<option value="2">JGLOBAL_INHERIT</option>
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
<field
|
||||
name="prefix"
|
||||
type="text"
|
||||
label="COM_FIELDS_FIELD_PREFIX_LABEL"
|
||||
size="40"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="suffix"
|
||||
type="text"
|
||||
label="COM_FIELDS_FIELD_SUFFIX_LABEL"
|
||||
size="40"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="layout"
|
||||
type="fieldLayout"
|
||||
label="COM_FIELDS_FIELD_LAYOUT_LABEL"
|
||||
description="COM_FIELDS_FIELD_LAYOUT_DESC"
|
||||
class="custom-select"
|
||||
/>
|
||||
|
||||
<field
|
||||
name="display_readonly"
|
||||
type="list"
|
||||
label="JFIELD_DISPLAY_READONLY_LABEL"
|
||||
description="JFIELD_DISPLAY_READONLY_DESC"
|
||||
default="2"
|
||||
>
|
||||
<option value="2">JGLOBAL_INHERIT</option>
|
||||
<option value="1">JYES</option>
|
||||
<option value="0">JNO</option>
|
||||
</field>
|
||||
</fieldset>
|
||||
</fieldset>
|
||||
</fields>
|
||||
</form>
|
||||
|
|
|
@ -34,19 +34,22 @@ HTMLHelper::_('script', 'com_fields/admin-field-edit.js', ['version' => 'auto',
|
|||
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'general', Text::_('COM_FIELDS_VIEW_FIELD_FIELDSET_GENERAL', true)); ?>
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
<?php echo $this->form->renderField('type'); ?>
|
||||
<?php echo $this->form->renderField('name'); ?>
|
||||
<?php echo $this->form->renderField('label'); ?>
|
||||
<?php echo $this->form->renderField('description'); ?>
|
||||
<?php echo $this->form->renderField('required'); ?>
|
||||
<?php echo $this->form->renderField('default_value'); ?>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php echo $this->form->renderField('type'); ?>
|
||||
<?php echo $this->form->renderField('name'); ?>
|
||||
<?php echo $this->form->renderField('label'); ?>
|
||||
<?php echo $this->form->renderField('description'); ?>
|
||||
<?php echo $this->form->renderField('required'); ?>
|
||||
<?php echo $this->form->renderField('default_value'); ?>
|
||||
|
||||
<?php foreach ($this->form->getFieldsets('fieldparams') as $name => $fieldSet) : ?>
|
||||
<?php foreach ($this->form->getFieldset($name) as $field) : ?>
|
||||
<?php echo $field->renderField(); ?>
|
||||
<?php foreach ($this->form->getFieldsets('fieldparams') as $name => $fieldSet) : ?>
|
||||
<?php foreach ($this->form->getFieldset($name) as $field) : ?>
|
||||
<?php echo $field->renderField(); ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
<?php endforeach; ?>
|
||||
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<div class="card">
|
||||
|
@ -77,7 +80,10 @@ HTMLHelper::_('script', 'com_fields/admin-field-edit.js', ['version' => 'auto',
|
|||
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'publishing', Text::_('JGLOBAL_FIELDSET_PUBLISHING', true)); ?>
|
||||
<div class="row">
|
||||
<div class="col-md-6">
|
||||
<fieldset id="fieldset-publishingdata" class="options-fieldset option-fieldset-full">
|
||||
<legend><?php echo Text::_('JGLOBAL_FIELDSET_PUBLISHING'); ?></legend>
|
||||
<?php echo LayoutHelper::render('joomla.edit.publishingdata', $this); ?>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
</div>
|
||||
|
@ -85,7 +91,10 @@ HTMLHelper::_('script', 'com_fields/admin-field-edit.js', ['version' => 'auto',
|
|||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
<?php if ($this->canDo->get('core.admin')) : ?>
|
||||
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'rules', Text::_('JGLOBAL_ACTION_PERMISSIONS_LABEL', true)); ?>
|
||||
<?php echo $this->form->getInput('rules'); ?>
|
||||
<fieldset id="fieldset-rules" class="options-fieldset option-fieldset-full">
|
||||
<legend><?php echo Text::_('JGLOBAL_ACTION_PERMISSIONS_LABEL'); ?></legend>
|
||||
<?php echo $this->form->getInput('rules'); ?>
|
||||
</fieldset>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo HTMLHelper::_('uitab.endTabSet'); ?>
|
||||
|
|
|
@ -32,31 +32,42 @@ $this->useCoreUI = true;
|
|||
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'general', Text::_('COM_FIELDS_VIEW_FIELD_FIELDSET_GENERAL', true)); ?>
|
||||
<div class="row">
|
||||
<div class="col-md-9">
|
||||
<?php echo $this->form->renderField('label'); ?>
|
||||
<?php echo $this->form->renderField('description'); ?>
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php echo $this->form->renderField('label'); ?>
|
||||
<?php echo $this->form->renderField('description'); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="col-md-3">
|
||||
<?php $this->set('fields',
|
||||
array(
|
||||
<div class="card">
|
||||
<div class="card-body">
|
||||
<?php $this->set('fields',
|
||||
array(
|
||||
'published',
|
||||
'state',
|
||||
'enabled',
|
||||
),
|
||||
'access',
|
||||
'language',
|
||||
'note',
|
||||
)
|
||||
); ?>
|
||||
<?php echo LayoutHelper::render('joomla.edit.global', $this); ?>
|
||||
<?php $this->set('fields', null); ?>
|
||||
array(
|
||||
'published',
|
||||
'state',
|
||||
'enabled',
|
||||
),
|
||||
'access',
|
||||
'language',
|
||||
'note',
|
||||
)
|
||||
); ?>
|
||||
<?php echo LayoutHelper::render('joomla.edit.global', $this); ?>
|
||||
<?php $this->set('fields', null); ?>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'publishing', Text::_('JGLOBAL_FIELDSET_PUBLISHING', true)); ?>
|
||||
<div class="row form-horizontal-desktop">
|
||||
<div class="col-md-6">
|
||||
<?php echo LayoutHelper::render('joomla.edit.publishingdata', $this); ?>
|
||||
<fieldset id="fieldset-rules" class="options-fieldset option-fieldset-full">
|
||||
<legend><?php echo Text::_('JGLOBAL_FIELDSET_PUBLISHING'); ?></legend>
|
||||
<?php echo LayoutHelper::render('joomla.edit.publishingdata', $this); ?>
|
||||
</fieldset>
|
||||
</div>
|
||||
<div class="col-md-6">
|
||||
</div>
|
||||
|
@ -66,7 +77,10 @@ $this->useCoreUI = true;
|
|||
<?php echo LayoutHelper::render('joomla.edit.params', $this); ?>
|
||||
<?php if ($this->canDo->get('core.admin')) : ?>
|
||||
<?php echo HTMLHelper::_('uitab.addTab', 'myTab', 'rules', Text::_('JGLOBAL_ACTION_PERMISSIONS_LABEL', true)); ?>
|
||||
<?php echo $this->form->getInput('rules'); ?>
|
||||
<fieldset id="fieldset-rules" class="options-fieldset option-fieldset-full">
|
||||
<legend><?php echo Text::_('JGLOBAL_ACTION_PERMISSIONS_LABEL'); ?></legend>
|
||||
<?php echo $this->form->getInput('rules'); ?>
|
||||
</fieldset>
|
||||
<?php echo HTMLHelper::_('uitab.endTab'); ?>
|
||||
<?php endif; ?>
|
||||
<?php echo HTMLHelper::_('uitab.endTabSet'); ?>
|
||||
|
|
Loading…
Reference in New Issue
Block a user