ccm-docs
Jens Pelzetter 2020-11-18 16:48:43 +01:00
parent 550446b183
commit a9a16311b3
3 changed files with 9 additions and 3 deletions

View File

@ -107,7 +107,7 @@ public class CategorySystemDetailsModel {
} }
public String getRootIdentifier() { public String getRootIdentifier() {
return String.format("UUID-%s", rootIdentifier); return rootIdentifier;
} }
protected void setRootIdentifier(final String rootIdentifier) { protected void setRootIdentifier(final String rootIdentifier) {

View File

@ -1,5 +1,6 @@
<!DOCTYPE html> <!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" <html xmlns="http://www.w3.org/1999/xhtml"
xmlns:bootstrap="http://xmlns.jcp.org/jsf/composite/components/bootstrap"
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core" xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:h="http://xmlns.jcp.org/jsf/html"
xmlns:ui="http://xmlns.jcp.org/jsf/facelets"> xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
@ -17,6 +18,13 @@
<ui:define name="main"> <ui:define name="main">
<div class="container"> <div class="container">
<h1>#{AdminMessages['categories.label']}</h1> <h1>#{AdminMessages['categories.label']}</h1>
<form action="#" method="post">
<bootstrap:formGroupText help="test"
inputId="test"
label="Test"
name="test" />
</form>
<p>ToDo</p> <p>ToDo</p>
</div> </div>
</ui:define> </ui:define>

View File

@ -308,8 +308,6 @@
<div class="mb-2"> <div class="mb-2">
<div class="text-right"> <div class="text-right">
<a class="btn btn-secondary" <a class="btn btn-secondary"
data-target="#categorysystem-category-add"
data-toggle="modal"
href="#{mvc.uri('CategoriesController#newSubCategory', {'categoryIdentifier': CategorySystemDetailsModel.rootIdentifier})}" href="#{mvc.uri('CategoriesController#newSubCategory', {'categoryIdentifier': CategorySystemDetailsModel.rootIdentifier})}"
type="button"> type="button">
<bootstrap:svgIcon icon="plus-circle" /> <bootstrap:svgIcon icon="plus-circle" />