Skip to content
This repository has been archived by the owner on Jan 13, 2023. It is now read-only.

Commit

Permalink
wip
Browse files Browse the repository at this point in the history
  • Loading branch information
astridx committed Feb 23, 2022
1 parent 5511902 commit fc55581
Show file tree
Hide file tree
Showing 4 changed files with 155 additions and 154 deletions.
2 changes: 1 addition & 1 deletion j4/pkg_agosms/jorobo.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
extension = agosms
version = 4.0.9
version = 4.0.11
source = src
target = package

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,9 @@ public function getForm($data = [], $loadData = true)
$app = Factory::getApplication();

$layout = $app->input->get('layout');
if ($layout === null) $layout = "editcustom";
if ($layout === null) {
$layout = "editcustom";
}


// Get the form.
Expand Down
301 changes: 150 additions & 151 deletions j4/pkg_agosms/src/components/com_agosms/tmpl/form/editcustom.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@
use Joomla\CMS\Layout\LayoutHelper;
use Joomla\CMS\Router\Route;


/** @var Joomla\CMS\WebAsset\WebAssetManager $wa */
$wa = $this->document->getWebAssetManager();
$wa->useScript('keepalive')
Expand All @@ -29,177 +28,177 @@

<style>
.modal-agosm {
background-color: #fefefe;
background-color: #fefefe;
}
</style>

<div class="edit item-page<?php echo $this->pageclass_sfx; ?>">
<?php if ($this->params->get('show_page_heading')) : ?>
<div class="page-header">
<h1>
<?php echo $this->escape($this->params->get('page_heading')); ?>
</h1>
</div>
<?php endif; ?>
<?php if ($this->params->get('show_page_heading')) : ?>
<div class="page-header">
<h1>
<?php echo $this->escape($this->params->get('page_heading')); ?>
</h1>
</div>
<?php endif; ?>



<form action="<?php echo Route::_('index.php?option=com_agosms&id=' . (int) $this->item->id); ?>" method="post"
name="adminForm" id="adminForm" class="form-validate form-vertical">
<div class="mb-2 d-flex">
<button type="button" class="btn btn-sm btn-outline-info button-inlinehelp ms-auto">
<span class="fa fa-question-circle" aria-hidden="true"></span>
<?php echo Text::_('JINLINEHELP') ?>
</button>
</div>
<form action="<?php echo Route::_('index.php?option=com_agosms&id=' . (int) $this->item->id); ?>" method="post"
name="adminForm" id="adminForm" class="form-validate form-vertical">
<div class="mb-2 d-flex">
<button type="button" class="btn btn-sm btn-outline-info button-inlinehelp ms-auto">
<span class="fa fa-question-circle" aria-hidden="true"></span>
<?php echo Text::_('JINLINEHELP') ?>
</button>
</div>

<fieldset>
<fieldset>

<?php echo $this->form->renderField('name'); ?>
<?php echo $this->form->renderField('name'); ?>

<?php echo HTMLHelper::_('uitab.startTabSet', $this->tab_name, ['active' => 'cords', 'breakpoint' => 768]); ?>
<?php echo HTMLHelper::_('uitab.startTabSet', $this->tab_name, ['active' => 'cords', 'breakpoint' => 768]); ?>


<?php echo HTMLHelper::_('uitab.addTab', $this->tab_name, 'cords', Text::_('COM_AGOSMS_FIELDSET_COORDS')); ?>
<?php echo $this->form->renderField('coordinates'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php echo HTMLHelper::_('uitab.addTab', $this->tab_name, 'cords', Text::_('COM_AGOSMS_FIELDSET_COORDS')); ?>
<?php echo $this->form->renderField('coordinates'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>


<?php echo HTMLHelper::_('uitab.addTab', $this->tab_name, 'details', empty($this->item->id) ? Text::_('COM_AGOSMS_DESC_AGOSM') : Text::_('COM_AGOSMS_EDIT_AGOSM')); ?>
<?php echo $this->form->renderField('description'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php echo HTMLHelper::_('uitab.addTab', $this->tab_name, 'details', empty($this->item->id) ? Text::_('COM_AGOSMS_DESC_AGOSM') : Text::_('COM_AGOSMS_EDIT_AGOSM')); ?>
<?php echo $this->form->renderField('description'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>

<?php echo HTMLHelper::_('uitab.addTab', $this->tab_name, 'custom', Text::_('COM_AGOSMS_FIELDSET_CUSTOM')); ?>
<?php echo HTMLHelper::_('uitab.addTab', $this->tab_name, 'custom', Text::_('COM_AGOSMS_FIELDSET_CUSTOM')); ?>

<?php echo $this->form->renderField('cusotm1'); ?>
<?php echo $this->form->renderField('cusotm2'); ?>
<?php echo $this->form->renderField('cusotm3'); ?>
<?php echo $this->form->renderField('cusotm4'); ?>
<?php echo $this->form->renderField('cusotm5'); ?>
<?php echo $this->form->renderField('cusotm6'); ?>
<?php echo $this->form->renderField('cusotm7'); ?>
<?php echo $this->form->renderField('cusotm8'); ?>
<?php echo $this->form->renderField('cusotm9'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php echo $this->form->renderField('cusotm1'); ?>
<?php echo $this->form->renderField('cusotm2'); ?>
<?php echo $this->form->renderField('cusotm3'); ?>
<?php echo $this->form->renderField('cusotm4'); ?>
<?php echo $this->form->renderField('cusotm5'); ?>
<?php echo $this->form->renderField('cusotm6'); ?>
<?php echo $this->form->renderField('cusotm7'); ?>
<?php echo $this->form->renderField('cusotm8'); ?>
<?php echo $this->form->renderField('cusotm9'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>


<?php if (is_null($this->item->id)) : ?>
<?php echo $this->form->renderField('alias'); ?>
<?php endif; ?>
<?php if (is_null($this->item->id)) : ?>
<?php echo $this->form->renderField('alias'); ?>
<?php endif; ?>

<?php echo $this->form->renderFieldset('details'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php echo $this->form->renderFieldset('details'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>

<div style="display:none">
<?php echo HTMLHelper::_('uitab.addTab', $this->tab_name, 'misc', Text::_('COM_AGOSMS_FIELDSET_MISCELLANEOUS')); ?>
<?php echo $this->form->getInput('misc'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
</div>
<div style="display:none">
<?php echo HTMLHelper::_('uitab.addTab', $this->tab_name, 'misc', Text::_('COM_AGOSMS_FIELDSET_MISCELLANEOUS')); ?>
<?php echo $this->form->getInput('misc'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
</div>

<?php echo HTMLHelper::_('uitab.addTab', $this->tab_name, 'end', Text::_('COM_AGOSMS_FIELDSET_END')); ?>
<?php echo HTMLHelper::_('uitab.addTab', $this->tab_name, 'end', Text::_('COM_AGOSMS_FIELDSET_END')); ?>

<div class="mb-2">
<div class="mb-2">
not ready yet!
<table class="table table table-striped table-sm table-bordered">
<tbody>
<tr>
<td><?php echo Text::_('COM_AGOSMS_FIELD_NAME_LABEL'); ?></td>
<td><?php echo $this->item->name; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_AGOSMS_FIELD_DESCRIPTION_LABEL'); ?></td>
<td><?php echo $this->item->description; ?></td>
</tr>
<tr>
<td><?php echo Text::_('JFIELD_LANGUAGE_LABEL'); ?></td>
<td><?php echo $this->item->cusotm1; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_AGOSMS_FIELD_CUSTOM_TYPEPFEVENT_LABEL'); ?></td>
<td><?php echo $this->item->cusotm2; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_AGOSMS_FIELD_CUSTOM_VALUE9_DATE_LABEL'); ?></td>
<td><?php echo $this->item->cusotm3; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_AGOSMS_FIELD_CUSTOM_VALUE9_ORGANISATION_LABEL'); ?></td>
<td><?php echo $this->item->cusotm4; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_CONTACT_FIELD_INFORMATION_WEBPAGE_LABEL'); ?></td>
<td><?php echo $this->item->cusotm5; ?></td>
</tr>
<tr>
<td><?php echo Text::_('JGLOBAL_EMAIL'); ?></td>
<td><?php echo $this->item->cusotm6; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_CONTACT_FIELD_INFORMATION_TELEPHONE_LABEL'); ?></td>
<td><?php echo $this->item->cusotm7; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_CONTACT_FIELD_INFORMATION_ADDRESS_LABEL'); ?></td>
<td><?php echo $this->item->cusotm8; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_AGOSMS_FIELD_CUSTOM_VALUE9_LOGO_LABEL'); ?></td>
<td> <?php echo LayoutHelper::render(
'joomla.html.image',
[
'src' => $this->item->cusotm9,
'alt' => "",
'itemprop' => 'image',
]
); ?></td>
</tr>
</tbody>
</table>






<button type="button" class="btn btn-primary"
onclick="window.scrollTo(0, 0);Joomla.submitbutton('agosm.save')">
<span class="icon-check" aria-hidden="true"></span>
<?php echo Text::_('JSUBMIT'); ?>
</button>
<button type="button" class="btn btn-danger" onclick="Joomla.submitbutton('agosm.cancel')">
<span class="icon-times" aria-hidden="true"></span>
<?php echo Text::_('JCANCEL'); ?>
</button>
</div>

<?php echo HTMLHelper::_('uitab.endTab'); ?>

<div style="display:none">
<?php if (Multilanguage::isEnabled()) : ?>
<?php echo HTMLHelper::_('uitab.addTab', $this->tab_name, 'language', Text::_('JFIELD_LANGUAGE_LABEL')); ?>
<?php echo $this->form->renderField('language'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php else : ?>
<?php echo $this->form->renderField('language'); ?>
<?php endif; ?>
</div>
<div style="display:none">
<?php echo $this->form->renderField('catid'); ?>
<?php echo $this->form->renderField('published'); ?>
<?php echo $this->form->renderField('featured'); ?>
<?php echo $this->form->renderField('popuptext'); ?>
<?php echo $this->form->renderField('showpopup'); ?>
<?php echo LayoutHelper::render('joomla.edit.params', $this); ?>
</div>

<div style="display:none">
<?php echo LayoutHelper::render('joomla.edit.params', $this); ?>
</div>
<?php echo HTMLHelper::_('uitab.endTabSet'); ?>

<input type="hidden" name="task" value="" />
<input type="hidden" name="return" value="<?php echo $this->return_page; ?>" />
<?php echo HTMLHelper::_('form.token'); ?>
</fieldset>
</form>
<table class="table table table-striped table-sm table-bordered">
<tbody>
<tr>
<td><?php echo Text::_('COM_AGOSMS_FIELD_NAME_LABEL'); ?></td>
<td><?php echo $this->item->name; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_AGOSMS_FIELD_DESCRIPTION_LABEL'); ?></td>
<td><?php echo $this->item->description; ?></td>
</tr>
<tr>
<td><?php echo Text::_('JFIELD_LANGUAGE_LABEL'); ?></td>
<td><?php echo $this->item->cusotm1; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_AGOSMS_FIELD_CUSTOM_TYPEPFEVENT_LABEL'); ?></td>
<td><?php echo $this->item->cusotm2; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_AGOSMS_FIELD_CUSTOM_VALUE9_DATE_LABEL'); ?></td>
<td><?php echo $this->item->cusotm3; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_AGOSMS_FIELD_CUSTOM_VALUE9_ORGANISATION_LABEL'); ?></td>
<td><?php echo $this->item->cusotm4; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_CONTACT_FIELD_INFORMATION_WEBPAGE_LABEL'); ?></td>
<td><?php echo $this->item->cusotm5; ?></td>
</tr>
<tr>
<td><?php echo Text::_('JGLOBAL_EMAIL'); ?></td>
<td><?php echo $this->item->cusotm6; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_CONTACT_FIELD_INFORMATION_TELEPHONE_LABEL'); ?></td>
<td><?php echo $this->item->cusotm7; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_CONTACT_FIELD_INFORMATION_ADDRESS_LABEL'); ?></td>
<td><?php echo $this->item->cusotm8; ?></td>
</tr>
<tr>
<td><?php echo Text::_('COM_AGOSMS_FIELD_CUSTOM_VALUE9_LOGO_LABEL'); ?></td>
<td> <?php echo LayoutHelper::render(
'joomla.html.image',
[
'src' => $this->item->cusotm9,
'alt' => "",
'itemprop' => 'image',
]
); ?></td>
</tr>
</tbody>
</table>






<button type="button" class="btn btn-primary"
onclick="window.scrollTo(0, 0);Joomla.submitbutton('agosm.save')">
<span class="icon-check" aria-hidden="true"></span>
<?php echo Text::_('JSUBMIT'); ?>
</button>
<button type="button" class="btn btn-danger" onclick="Joomla.submitbutton('agosm.cancel')">
<span class="icon-times" aria-hidden="true"></span>
<?php echo Text::_('JCANCEL'); ?>
</button>
</div>

<?php echo HTMLHelper::_('uitab.endTab'); ?>

<div style="display:none">
<?php if (Multilanguage::isEnabled()) : ?>
<?php echo HTMLHelper::_('uitab.addTab', $this->tab_name, 'language', Text::_('JFIELD_LANGUAGE_LABEL')); ?>
<?php echo $this->form->renderField('language'); ?>
<?php echo HTMLHelper::_('uitab.endTab'); ?>
<?php else : ?>
<?php echo $this->form->renderField('language'); ?>
<?php endif; ?>
</div>
<div style="display:none">
<?php echo $this->form->renderField('catid'); ?>
<?php echo $this->form->renderField('published'); ?>
<?php echo $this->form->renderField('featured'); ?>
<?php echo $this->form->renderField('popuptext'); ?>
<?php echo $this->form->renderField('showpopup'); ?>
<?php echo LayoutHelper::render('joomla.edit.params', $this); ?>
</div>

<div style="display:none">
<?php echo LayoutHelper::render('joomla.edit.params', $this); ?>
</div>
<?php echo HTMLHelper::_('uitab.endTabSet'); ?>

<input type="hidden" name="task" value="" />
<input type="hidden" name="return" value="<?php echo $this->return_page; ?>" />
<?php echo HTMLHelper::_('form.token'); ?>
</fieldset>
</form>
</div>
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@
'alt' => "",
'itemprop' => 'image',
]
); ?></td>
); ?></td>
</tr>
</tbody>
</table>
Expand Down

0 comments on commit fc55581

Please sign in to comment.