You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
52 lines
1.9 KiB
52 lines
1.9 KiB
6 years ago
|
<ol class="breadcrumb">
|
||
|
<li class="breadcrumb-item">
|
||
|
<a href="<?= site_url('admin') ?>"><?= lang('Admin.homeBreadcrumbTitle') ?></a>
|
||
|
</li>
|
||
|
<li class="breadcrumb-item">
|
||
|
<a href="<?= site_url('admin/groups') ?>"><?= lang('Admin.groupsBreadcrumbTitle') ?></a>
|
||
|
</li>
|
||
|
<li class="breadcrumb-item active"><?= lang('Admin.breadcrumbCommonEdit') ?></li>
|
||
|
</ol>
|
||
|
<?php if (session('errors')): ?>
|
||
|
<div class="alert alert-danger">
|
||
|
<?php foreach (session('errors') as $error) : ?>
|
||
|
<?= esc($error) ?><br />
|
||
|
<?php endforeach ?>
|
||
|
</div>
|
||
|
<?php elseif (session('infos')): ?>
|
||
|
<div class="alert alert-info">
|
||
|
<?php foreach (session('infos') as $info) : ?>
|
||
|
<?= esc($info) ?><br />
|
||
|
<?php endforeach ?>
|
||
|
</div>
|
||
|
<?php endif; ?>
|
||
|
<div class="card mb-3">
|
||
|
<div class="card-header">
|
||
|
<?= lang('Admin.groupsEditHeader') ?>
|
||
|
</div>
|
||
|
<?= form_open('admin/groups/update/' . $group['id']) ?>
|
||
|
<div class="card-body">
|
||
|
<div class="form-group">
|
||
|
<label><?= lang('Admin.groupsLabelNameCurrent') ?></label>
|
||
|
<p><?= $group['name'] ?></p>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="inputName"><?= lang('Admin.groupsLabelName') ?></label>
|
||
|
<input type="text" class="form-control" name="name" id="inputName" placeholder="<?= lang('Admin.groupsLabelName') ?>">
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label><?= lang('Admin.groupsLabelDefinitionCurrent') ?></label>
|
||
|
<p><?= $group['definition'] ?></p>
|
||
|
</div>
|
||
|
<div class="form-group">
|
||
|
<label for="inputDefinition"><?= lang('Admin.groupsLabelDefinition') ?></label>
|
||
|
<input type="text" class="form-control" name="definition" id="inputDefinition" placeholder="<?= lang('Admin.groupsLabelDefinition') ?>">
|
||
|
</div>
|
||
|
</div>
|
||
|
<div class="card-footer">
|
||
|
<button type="submit" class="btn btn-primary float-right"><?= lang('Admin.groupsEditSubmit') ?></button>
|
||
|
<a href="<?= site_url('admin/groups') ?>" class="btn btn-warning"><?= lang('Admin.groupsLinkBack') ?></a>
|
||
|
</div>
|
||
|
<?= form_close() ?>
|
||
|
</div>
|