Extended AssetPicker with an option to include extra components into the form.
parent
f2ecb745d9
commit
ab811f359b
|
|
@ -1,9 +1,10 @@
|
||||||
<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:bootstrap="http://xmlns.jcp.org/jsf/composite/components/bootstrap"
|
||||||
xmlns:cc="http://xmlns.jcp.org/jsf/composite"
|
xmlns:cc="http://xmlns.jcp.org/jsf/composite"
|
||||||
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core">
|
xmlns:c="http://xmlns.jcp.org/jsp/jstl/core"
|
||||||
|
xmlns:ui="http://xmlns.jcp.org/jsf/facelets">
|
||||||
|
|
||||||
<cc:interface shortDescription="An component for selecting assets.">
|
<cc:interface shortDescription="An component for selecting assets. Additional components for the form may be added as children of the tag. They are inserted before the form elements for looking up assets.">
|
||||||
<cc:attribute name="actionUrl"
|
<cc:attribute name="actionUrl"
|
||||||
required="true"
|
required="true"
|
||||||
shortDescription="Base URL for the actions of the asset picker."
|
shortDescription="Base URL for the actions of the asset picker."
|
||||||
|
|
@ -99,6 +100,9 @@
|
||||||
<form action="#{cc.attrs.actionUrl}"
|
<form action="#{cc.attrs.actionUrl}"
|
||||||
class="modal-body"
|
class="modal-body"
|
||||||
method="post">
|
method="post">
|
||||||
|
|
||||||
|
<cc:insertChildren />
|
||||||
|
|
||||||
<input class="assetpicker-param"
|
<input class="assetpicker-param"
|
||||||
id="#{cc.attrs.assetPickerId}-param-input"
|
id="#{cc.attrs.assetPickerId}-param-input"
|
||||||
name="#{cc.attrs.formParamName}"
|
name="#{cc.attrs.formParamName}"
|
||||||
|
|
|
||||||
|
|
@ -174,14 +174,14 @@
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
<button class="btn btn-warning"
|
<button class="btn btn-warning"
|
||||||
data-dismiss="modal"
|
data-dismiss="modal"
|
||||||
type="button">
|
type="button">
|
||||||
#{CmsEventMessageBundle['basicproperties.eventdatetime.edit.dialog.close']}
|
#{CmsEventMessageBundle['basicproperties.eventdatetime.edit.dialog.close']}
|
||||||
</button>
|
</button>
|
||||||
<button class="btn btn-success"
|
<button class="btn btn-success"
|
||||||
type="submit">
|
type="submit">
|
||||||
#{CmsEventMessageBundle['basicproperties.eventdatetime.edit.dialog.submit']}
|
#{CmsEventMessageBundle['basicproperties.eventdatetime.edit.dialog.submit']}
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue