Cleanup
parent
064a958062
commit
ca154bf120
|
|
@ -150,246 +150,6 @@
|
||||||
useTextarea="true"
|
useTextarea="true"
|
||||||
values="#{CategorySystemDetailsModel.description}" />
|
values="#{CategorySystemDetailsModel.description}" />
|
||||||
|
|
||||||
<!-- <h2>
|
|
||||||
#{AdminMessages['categorysystems.details.description.heading']}
|
|
||||||
</h2>
|
|
||||||
<c:if test="#{CategorySystemDetailsModel.hasUnusedDescriptionLocales()}">
|
|
||||||
<div class="mb-2">
|
|
||||||
<div class="text-right">
|
|
||||||
<button class="btn btn-secondary"
|
|
||||||
data-target="#categorysystem-description-add"
|
|
||||||
data-toggle="modal"
|
|
||||||
type="button">
|
|
||||||
<bootstrap:svgIcon icon="plus-circle" />
|
|
||||||
<span>#{AdminMessages['categorysystems.details.description.add']}</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal fade"
|
|
||||||
data-backdrop="static"
|
|
||||||
id="categorysystem-description-add"
|
|
||||||
tabindex="-1">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<form action="#{mvc.uri('CategorySystemsController#addDescription', {'categorySystemIdentifier': CategorySystemDetailsModel.identifier })}"
|
|
||||||
class="modal-content"
|
|
||||||
method="post">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h3 class="modal-title">
|
|
||||||
#{AdminMessages['categorysystems.details.description.add.dialog.title']}
|
|
||||||
</h3>
|
|
||||||
<button aria-label="#{AdminMessages['categorysystems.details.title.add.dialog.close']}"
|
|
||||||
class="close"
|
|
||||||
data-dismiss="modal"
|
|
||||||
type="button">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="categorysystem-description-add-locale">
|
|
||||||
#{AdminMessages['categorysystems.details.description.add.dialog.locale.label']}
|
|
||||||
</label>
|
|
||||||
<select aria-describedby="categorysystem-description-add-locale-help"
|
|
||||||
id="categorysystem-description-add-locale"
|
|
||||||
name="locale"
|
|
||||||
required="true">
|
|
||||||
<c:forEach items="#{CategorySystemDetailsModel.unusedDescriptionLocales}" var="locale">
|
|
||||||
<option value="#{locale}">#{locale}</option>
|
|
||||||
</c:forEach>
|
|
||||||
</select>
|
|
||||||
<small class="form-text text-muted"
|
|
||||||
id="categorysystem-description-add-locale-help">
|
|
||||||
#{AdminMessages['categorysystems.details.description.add.dialog.locale.help']}
|
|
||||||
</small>
|
|
||||||
</div>
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="categorysystem-description-add-value">
|
|
||||||
#{AdminMessages['categorysystems.details.description.add.dialog.value.label']}
|
|
||||||
</label>
|
|
||||||
<textarea aria-describedby="categorysystem-description-add-value-help"
|
|
||||||
class="form-control"
|
|
||||||
cols="80"
|
|
||||||
id="categorysystem-description-add-value"
|
|
||||||
name="value"
|
|
||||||
required="true"
|
|
||||||
rows="10"></textarea>
|
|
||||||
<small class="form-text text-muted"
|
|
||||||
id="categorysystem-description-add-locale-help">
|
|
||||||
#{AdminMessages['categorysystems.details.description.add.dialog.value.help']}
|
|
||||||
</small>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button class="btn btn-secondary"
|
|
||||||
data-dismiss="modal"
|
|
||||||
type="button" >
|
|
||||||
#{AdminMessages['categorysystems.details.description.add.dialog.close']}
|
|
||||||
</button>
|
|
||||||
<button type="submit" class="btn btn-primary">
|
|
||||||
#{AdminMessages['categorysystems.details.description.add.dialog.submit']}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</c:if>
|
|
||||||
<c:choose>
|
|
||||||
<c:when test="#{CategorySystemDetailsModel.getDescription().isEmpty()}">
|
|
||||||
<p>
|
|
||||||
#{AdminMessages['categorysystems.details.description.none']}
|
|
||||||
</p>
|
|
||||||
</c:when>
|
|
||||||
<c:otherwise>
|
|
||||||
<table class="table table-hover">
|
|
||||||
<thead class="thead-light">
|
|
||||||
<tr>
|
|
||||||
<th scope="col">#{AdminMessages['categorysystems.details.description.table.headings.locale']}</th>
|
|
||||||
<th scope="col">#{AdminMessages['categorysystems.details.description.table.headings.value']}</th>
|
|
||||||
<th class="text-center"
|
|
||||||
colspan="2"
|
|
||||||
scope="col">#{AdminMessages['categorysystems.details.description.table.headings.actions']}</th>
|
|
||||||
</tr>
|
|
||||||
</thead>
|
|
||||||
<tbody>
|
|
||||||
<c:forEach items="#{CategorySystemDetailsModel.description}"
|
|
||||||
var="entry">
|
|
||||||
<tr>
|
|
||||||
<td>
|
|
||||||
#{entry.key}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
#{entry.value}
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<div class="text-center">
|
|
||||||
<button class="btn btn-info"
|
|
||||||
data-target="#categorysystem-description-#{entry.key}-edit"
|
|
||||||
data-toggle="modal"
|
|
||||||
type="button">
|
|
||||||
<bootstrap:svgIcon icon="pen" />
|
|
||||||
<span>#{AdminMessages['categorysystems.details.description.table.actions.edit']}</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div aria-describedby="categorysystem-description-#{entry.key}-edit-title"
|
|
||||||
aria-hidden="true"
|
|
||||||
class="modal fade"
|
|
||||||
data-backdrop="static"
|
|
||||||
id="categorysystem-description-#{entry.key}-edit"
|
|
||||||
tabindex="-1">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<form action="#{mvc.uri('CategorySystemsController#editDescription', {'categorySystemIdentifier': CategorySystemDetailsModel.identifier, 'locale': entry.key })}"
|
|
||||||
class="modal-content"
|
|
||||||
method="post">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h3 class="modal-title"
|
|
||||||
id="categorysystem-description-#{entry.key}-edit-title">
|
|
||||||
#{AdminMessages['categorysystems.details.description.table.actions.edit.dialog.title']}
|
|
||||||
</h3>
|
|
||||||
<button aria-label="#{AdminMessages['categorysystems.details.description.edit.dialog.close']}"
|
|
||||||
class="close"
|
|
||||||
data-dismiss="modal"
|
|
||||||
type="button">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<input name="locale"
|
|
||||||
value="#{entry.key}"
|
|
||||||
type="hidden" />
|
|
||||||
<div class="form-group">
|
|
||||||
<label for="categorysystem-description-#{entry.key}-edit-value">
|
|
||||||
#{AdminMessages['categorysystems.details.description.edit.dialog.value.label']}
|
|
||||||
</label>
|
|
||||||
<textarea aria-describedby="categorysystem-description-#{entry.key}-edit-value-help"
|
|
||||||
class="form-control"
|
|
||||||
cols="80"
|
|
||||||
id="categorysystem-description-#{entry.key}-edit-value"
|
|
||||||
name="value"
|
|
||||||
required="true"
|
|
||||||
rows="10"
|
|
||||||
type="text">#{entry.value}</textarea>
|
|
||||||
<small class="form-text text-muted"
|
|
||||||
id="categorysystem-description-#{entry.key}-edit-value-help">
|
|
||||||
#{AdminMessages['categorysystems.details.description.edit.dialog.value.help']}
|
|
||||||
</small>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button class="btn btn-secondary"
|
|
||||||
data-dismiss="modal"
|
|
||||||
type="button" >
|
|
||||||
#{AdminMessages['categorysystems.details.description.edit.dialog.close']}
|
|
||||||
</button>
|
|
||||||
<button type="submit" class="btn btn-primary">
|
|
||||||
#{AdminMessages['categorysystems.details.description.edit.dialog.submit']}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
<td>
|
|
||||||
<div class="text-center">
|
|
||||||
<button class="btn btn-danger"
|
|
||||||
data-target="#categorysystem-description-#{entry.key}-remove"
|
|
||||||
data-toggle="modal"
|
|
||||||
type="button">
|
|
||||||
<bootstrap:svgIcon icon="x-circle" />
|
|
||||||
<span>#{AdminMessages['categorysystems.details.description.table.actions.remove']}</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div aria-describedby="categorysystem-description-#{entry.key}-remove-title"
|
|
||||||
aria-hidden="true"
|
|
||||||
class="modal fade"
|
|
||||||
data-backdrop="static"
|
|
||||||
id="categorysystem-description-#{entry.key}-remove"
|
|
||||||
tabindex="-1">
|
|
||||||
<div class="modal-dialog">
|
|
||||||
<form action="#{mvc.uri('CategorySystemsController#removeDescription', {'categorySystemIdentifier': CategorySystemDetailsModel.identifier, 'locale': entry.key })}"
|
|
||||||
class="modal-content"
|
|
||||||
method="post">
|
|
||||||
<div class="modal-header">
|
|
||||||
<h3 class="modal-description" id="categorysystem-description-#{entry.key}-remove-title">
|
|
||||||
#{AdminMessages['categorysystems.details.description.table.actions.remove.dialog.title']}
|
|
||||||
</h3>
|
|
||||||
<button aria-label="#{AdminMessages['categorysystems.details.description.remove.dialog.close']}"
|
|
||||||
class="close"
|
|
||||||
data-dismiss="modal"
|
|
||||||
type="button">
|
|
||||||
<span aria-hidden="true">×</span>
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
<div class="modal-body">
|
|
||||||
<p>
|
|
||||||
#{AdminMessages.getMessage('categorysystems.details.description.remove.dialog.message', [entry.key, entry.value])}
|
|
||||||
</p>
|
|
||||||
<input name="confirmed"
|
|
||||||
type="hidden"
|
|
||||||
value="true" />
|
|
||||||
</div>
|
|
||||||
<div class="modal-footer">
|
|
||||||
<button class="btn btn-secondary"
|
|
||||||
data-dismiss="modal"
|
|
||||||
type="button" >
|
|
||||||
#{AdminMessages['categorysystems.details.description.remove.dialog.close']}
|
|
||||||
</button>
|
|
||||||
<button type="submit" class="btn btn-danger">
|
|
||||||
#{AdminMessages['categorysystems.details.description.remove.dialog.submit']}
|
|
||||||
</button>
|
|
||||||
</div>
|
|
||||||
</form>
|
|
||||||
</div>
|
|
||||||
</div>
|
|
||||||
</td>
|
|
||||||
</tr>
|
|
||||||
</c:forEach>
|
|
||||||
</tbody>
|
|
||||||
</table>
|
|
||||||
</c:otherwise>
|
|
||||||
</c:choose>-->
|
|
||||||
|
|
||||||
<h2>
|
<h2>
|
||||||
#{AdminMessages['categorysystems.details.owners.heading']}
|
#{AdminMessages['categorysystems.details.owners.heading']}
|
||||||
</h2>
|
</h2>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue