<input type="hidden" name="cmd" value="FichothequeCreation">
<input type="hidden" name="json" value="fichotheque-array">
<div class="grid-Table">
<p class="grid-Row">
    <label for="{{: genId}}_newfichothequename" class="grid-LabelCell">{{> ~loc('_ label.multi.newfichothequename')}}</label>
    <span class="grid-ColonCell">{{colon /}} </span>
    <span class="grid-InputCell">
        <input type="text" id="{{: genId}}_newfichothequename" name="newfichotheque" pattern="[a-z][_a-z0-9]*" size="30" title="{{> ~loc('_ info.inputpattern.technical_underscore', '[a-z][_a-z0-9]*')}}" required>
    </span>
</p>
{{if withCentralSpheres}}
<div class="grid-Row">
    <div class="grid-UniqueCell">
        <span class="command-FlexInput">
            <input type="radio" value="central" id="{{: genId}}_central_input" name="sphereorigin" data-deploy-role="radio" data-deploy-target="#{{: genId}}_central_panel" checked>
            <label for="{{: genId}}_central_input">{{> ~loc('_ label.multi.sphereorigin_central')}}</label>
        </span>
        <div class="global-DetailPanel grid-Table" id="{{: genId}}_central_panel">
            <fieldset class="grid-Row grid-choice-Fieldset">
                <legend class="grid-choice-Legend grid-Ignore">
                    <span class="grid-LabelCell">{{> ~loc('_ label.multi.centralspheres')}}</span>
                    <span class="grid-ColonCell">{{colon /}} </span>
                </legend>
                <div class="grid-choice-Content grid-Ignore">
        {{for availableCentralSphereArray}}
                    <span class="grid-choice-InputCell">
                        <input id="{{: ~root.genId}}_centralsphere_{{: name}}" type="checkbox" value="{{: name}}" name="centralsphere">
                    </span>
                    <span class="grid-choice-LabelCell">
                        <label for="{{: ~root.genId}}_centralsphere_{{: name}}">{{> title}} [{{: name}}]</label>
                    </span>
        {{/for}}
                </div>
            </fieldset>
        </div>
    </div>
</div>
{{/if}}
<div class="grid-Row">
    <div class="grid-UniqueCell">
        <span class="command-FlexInput">
            <input type="radio" value="creation" id="{{: genId}}_creation_input" name="sphereorigin" data-deploy-role="radio" data-deploy-target="#{{: genId}}_creation_panel" {{if !withCentralSpheres}}checked{{/if}}>
            <label for="{{: genId}}_creation_input">{{> ~loc('_ label.multi.sphereorigin_creation')}}</label>
        </span>
        <div class="global-DetailPanel grid-Table {{if withCentralSpheres}}hidden{{/if}}" id="{{: genId}}_creation_panel">
            <p class="grid-Row">
                <label for="{{: genId}}_firstsphere" class="grid-LabelCell">{{> ~loc('_ label.multi.firstsphere')}}</label>
                <span class="grid-ColonCell">{{colon /}} </span>
                <span class="grid-InputCell">
                    <input type="text" value="admin" pattern="[a-z][a-z0-9]*" size="15" id="{{: genId}}_firstsphere" name="firstsphere" data-deploy-required="visible" title="{{> ~loc('_ info.inputpattern.technical_strict', '[a-z][a-z0-9]*')}}">
                </span>
            </p>
            <p class="grid-Row">
                <label for="{{: genId}}_firstuser" class="grid-LabelCell">{{> ~loc('_ label.multi.firstuser')}}</label>
                <span class="grid-ColonCell">{{colon /}} </span>
                <span class="grid-InputCell">
                    <input type="text" value="ADMIN" pattern="[a-zA-Z][a-zA-Z0-9]*" size="15" id="{{: genId}}_firstuser" name="firstuser" data-deploy-required="visible" title="{{> ~loc('_ info.inputpattern.login', '[a-zA-Z][a-zA-Z0-9]*')}}">
                </span>
            </p>
            <p class="grid-Row">
                <label for="{{: genId}}_firstpassword_1" class="grid-LabelCell">{{> ~loc('_ label.multi.firstpassword_1')}}</label>
                <span class="grid-ColonCell">{{colon /}} </span>
                <span class="grid-InputCell">
                    <input type="password" size="15" id="{{: genId}}_firstpassword_1" name="firstpassword_1" data-deploy-required="visible">
                </span>
            </p>
            <p class="grid-Row">
                <label for="{{: genId}}_firstpassword_2" class="grid-LabelCell">{{> ~loc('_ label.multi.firstpassword_2')}}</label>
                <span class="grid-ColonCell">{{colon /}} </span>
                <span class="grid-InputCell">
                    <input type="password" size="15" id="{{: genId}}_firstpassword_2" name="firstpassword_2" data-deploy-required="visible">
                </span>
            </p>
        </div>
    </div>
</div>
{{if availableFichothequeArray}}
<div class="grid-Row">
    <div class="grid-UniqueCell">
        <span class="command-FlexInput">
            <input type="radio" value="copy" id="{{: genId}}_copy_input" name="sphereorigin" data-deploy-role="radio" data-deploy-target="#{{: genId}}_copy_panel">
            <label for="{{: genId}}_copy_input">{{> ~loc('_ label.multi.sphereorigin_copy')}}</label>
        </span>
        <div class="global-DetailPanel grid-Table hidden" id="{{: genId}}_copy_panel">
            <p class="grid-Row">
                <label for="{{: genId}}_copy_select" class="grid-LabelCell">{{> ~loc('_ label.global.fichotheque')}}</label>
                <span class="grid-ColonCell">{{colon /}} </span>
                <span class="grid-InputCell">
                    <select id="{{: genId}}_copy_select" name="copyorigin">
                    {{for availableFichothequeArray}}
                        <option value="{{: name}}">{{: name}} {{if title}} – {{> title}}{{/if}}</option>
                    {{/for}}
                    </select>
                </span>
            </p>
        </div>
    </div>
</div>
{{/if}}
</div>
