<commit_before><%--
Copyright (C) 2011 B3Partners B.V.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/taglibs.jsp"%>

<stripes:layout-render name="/WEB-INF/jsp/templates/ext.jsp">
    <stripes:layout-component name="head">
        <title>Applicatie instellingen</title>
    </stripes:layout-component>
    <stripes:layout-component name="header">
        <jsp:include page="/WEB-INF/jsp/header.jsp"/>
    </stripes:layout-component>
    <stripes:layout-component name="body">
            <div id="content">
                <p>
                <stripes:errors/>
                <stripes:messages/>
                <h1>Applicatie instellingen: <c:out value="${actionBean.application.name}"/> <c:if test="${!empty actionBean.application.version}">(v${actionBean.application.version})</c:if></h1>
                </p>
                <stripes:form beanclass="nl.b3p.viewer.admin.stripes.ApplicationSettingsActionBean">
                    <stripes:hidden name="application" value="${actionBean.application.id}"/>
                <table>
                    <tr>
                        <td>Naam:</td>
                        <td><stripes:text name="name" maxlength="255" size="30"/></td>
                        <td rowspan="9">Opmerkingen<br><stripes:textarea cols="80" rows="5" name="details['opmerking']"/></td>
                    </tr>
                    <tr>
                        <td>Versie:</td>
                        <td><stripes:text name="version" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Steunkleur 1:</td>
                        <td><stripes:text name="details['steunkleur1']" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Steunkleur 2:</td>
                        <td><stripes:text name="details['steunkleur2']" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Spritebestand icoontjes:</td>
                        <td><stripes:text name="details['iconSprite']" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Stylesheet metadata:</td>
                        <td><stripes:text name="details['stylesheetMetadata']" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Stylesheet feature info:</td>
                        <td><stripes:text name="details['stylesheetfeatureInfo']" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Stylesheet printen:</td>
                        <td><stripes:text name="details['stylesheetPrint']" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Eigenaar:</td>
                        <td><stripes:text name="owner" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Start extensie:</td>
                        <td>
                            lo-x <stripes:text name="startExtent.minx" maxlength="255" size="3"/>
                            lo-y <stripes:text name="startExtent.miny" maxlength="255" size="3"/>
                            rb-x <stripes:text name="startExtent.maxx" maxlength="255" size="3"/>
                            rb-y <stripes:text name="startExtent.maxy" maxlength="255" size="3"/>
                        </td>
                    </tr>
                    <tr>
                        <td>Maximale extensie:</td>
                        <td>
                            lo-x <stripes:text name="maxExtent.minx" maxlength="255" size="3"/>
                            lo-y <stripes:text name="maxExtent.miny" maxlength="255" size="3"/>
                            rb-x <stripes:text name="maxExtent.maxx" maxlength="255" size="3"/>
                            rb-y <stripes:text name="maxExtent.maxy" maxlength="255" size="3"/>
                        </td>
                    </tr>
                </table>   
                    <stripes:checkbox name="authenticatedRequired"/> Inloggen verplicht<br>
                    <stripes:submit name="save" value="Opslaan"/>
                    <stripes:submit name="cancel" value="Annuleren"/>
                    <stripes:submit name="copy" value="Maak kopie" onclick="return askName();"/>                                    
                </stripes:form>
            </div>
        <script type="text/javascript">
            var activelink = 'menu_instellingen';
            
            
            function askName() {
                var name = prompt("Naam van kopie",document.forms[0].name.value);

                if(name == null) {
                    alert("Naam moet zijn ingevuld");
                    return false;
                } else {                    
                    document.forms[0].name.value = name;
                    return true;
                }
            }
        </script>
    </stripes:layout-component>
</stripes:layout-render><commit_msg>gebruik Ext.MessageBox ipv prompt(), geen script warning bij IE8<commit_after><%--
Copyright (C) 2011 B3Partners B.V.

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
the Free Software Foundation, either version 3 of the License, or
(at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@include file="/WEB-INF/jsp/taglibs.jsp"%>

<stripes:layout-render name="/WEB-INF/jsp/templates/ext.jsp">
    <stripes:layout-component name="head">
        <title>Applicatie instellingen</title>
    </stripes:layout-component>
    <stripes:layout-component name="header">
        <jsp:include page="/WEB-INF/jsp/header.jsp"/>
    </stripes:layout-component>
    <stripes:layout-component name="body">
            <div id="content">
                <p>
                <stripes:errors/>
                <stripes:messages/>
                <h1>Applicatie instellingen: <c:out value="${actionBean.application.name}"/> <c:if test="${!empty actionBean.application.version}">(v${actionBean.application.version})</c:if></h1>
                </p>
                <stripes:form beanclass="nl.b3p.viewer.admin.stripes.ApplicationSettingsActionBean">
                    <stripes:hidden name="application" value="${actionBean.application.id}"/>
                <table>
                    <tr>
                        <td>Naam:</td>
                        <td><stripes:text name="name" maxlength="255" size="30"/></td>
                        <td rowspan="9">Opmerkingen<br><stripes:textarea cols="80" rows="5" name="details['opmerking']"/></td>
                    </tr>
                    <tr>
                        <td>Versie:</td>
                        <td><stripes:text name="version" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Steunkleur 1:</td>
                        <td><stripes:text name="details['steunkleur1']" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Steunkleur 2:</td>
                        <td><stripes:text name="details['steunkleur2']" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Spritebestand icoontjes:</td>
                        <td><stripes:text name="details['iconSprite']" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Stylesheet metadata:</td>
                        <td><stripes:text name="details['stylesheetMetadata']" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Stylesheet feature info:</td>
                        <td><stripes:text name="details['stylesheetfeatureInfo']" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Stylesheet printen:</td>
                        <td><stripes:text name="details['stylesheetPrint']" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Eigenaar:</td>
                        <td><stripes:text name="owner" maxlength="255" size="30"/></td>
                    </tr>
                    <tr>
                        <td>Start extensie:</td>
                        <td>
                            lo-x <stripes:text name="startExtent.minx" maxlength="255" size="3"/>
                            lo-y <stripes:text name="startExtent.miny" maxlength="255" size="3"/>
                            rb-x <stripes:text name="startExtent.maxx" maxlength="255" size="3"/>
                            rb-y <stripes:text name="startExtent.maxy" maxlength="255" size="3"/>
                        </td>
                    </tr>
                    <tr>
                        <td>Maximale extensie:</td>
                        <td>
                            lo-x <stripes:text name="maxExtent.minx" maxlength="255" size="3"/>
                            lo-y <stripes:text name="maxExtent.miny" maxlength="255" size="3"/>
                            rb-x <stripes:text name="maxExtent.maxx" maxlength="255" size="3"/>
                            rb-y <stripes:text name="maxExtent.maxy" maxlength="255" size="3"/>
                        </td>
                    </tr>
                </table>   
                    <stripes:checkbox name="authenticatedRequired"/> Inloggen verplicht<br>
                    <stripes:submit name="save" value="Opslaan"/>
                    <stripes:submit name="cancel" value="Annuleren"/>
                    <input type="hidden" name="copy" value="1" disabled="true"/>
                    <input type="button" value="Maak kopie" onclick="return confirmCopy();"/>                                    
                </stripes:form>
            </div>
<script type="text/javascript">
    var activelink = 'menu_instellingen';

    function confirmCopy() {
        Ext.MessageBox.show({
            title: 'Applicatie kopiëren',
            msg: 'Naam van kopie:',
            buttons: Ext.MessageBox.OKCANCEL,
            prompt:true,
            value: document.forms[0].name.value + " (kopie)",
            fn: function(btn, text){
                if(btn=='ok' && text){
                    
                    var frm = document.forms[0];
                    
                    frm.name.value = text;
                    frm.copy.disabled = false;
                    
                    frm.submit();
                }
            }
        });  
    }
</script>
    </stripes:layout-component>
</stripes:layout-render>
{'fraction_non_alphanumeric': 0.137858347386172, 'fraction_numerical': 0.016526138279932545, 'mean_word_length': 1.4798243780054359, 'pattern_counts': {'":': 0, '<': 254, '<?xml version=': 0, '>': 254, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '671257', 'n_tokens_mistral': 3386, 'n_tokens_neox': 3130, 'n_words': 655}