add.html 2.22 KB
Newer Older
1 2 3
{{extend 'db_layout.html'}}

<form id="data_form" action="DB_ADDRESS/config/add_form" enctype="multipart/form-data" method="post">
4 5 6 7 8 9 10 11 12 13 14 15
    <table>
        <tbody>
            <tr>
                <td >
                    <label for="config_name" id="config_name__label"> Name: </label>
                </td>
                <td >
                    <input class="string" id="config_name" name="config_name" type="text" value="">
                </td>
                <td >
                </td>
            </tr>
Marc Duez's avatar
Marc Duez committed
16
            <!--
17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
            <tr>
                <td>
                    <label for="config_standard" id="config_standard__label"> standard: </label>
                </td>
                <td>
                    <select id="config_standard" name="config_standard">
                        {{ 
                        query = db(db.standard_file).select() 
                        for row in query :}}
                        <option value="{{=row.id }}">{{=row.name }} </option>
                        {{pass}}
                    </select>
                </td>
                <td>
                </td>
            </tr>
Marc Duez's avatar
Marc Duez committed
33
            -->
34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
            <tr>
                <td>
                    <label for="config_command" id="config_command__label">Command: </label>
                </td>
                <td>
                    <input class="string" id="config_command" name="config_command" type="text" value="">
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                    <label for="config_info" id="config_info__label">Info: </label>
                </td>
                <td>
                    <textarea class="text" cols="40" id="config_info" name="config_info" rows="10">
                    </textarea>
                </td>
                <td>
                </td>
            </tr>
            <tr>
                <td>
                </td>
                <td >
Marc Duez's avatar
Marc Duez committed
59
                    <span class="button" onclick="db.call('config/index')"> back to list </span>
60 61 62 63 64 65 66 67
                    <input type="submit" value="Soumettre" class="btn">
                </td>
                <td>
                </td>
            </tr>
        </tbody>
    </table>
</form>