~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to views/resolution-form-edit.twig

  • Committer: Dan Garner
  • Date: 2015-06-19 15:50:58 UTC
  • mfrom: (428.1.46)
  • Revision ID: git-v1:2ab674ce7082f84b44bd480006860b88489aaa70
Merge pull request #69 from dasgarner/feature/playlists

Latest developments in the playlists/api branch

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
{#
 
2
/*
 
3
 * Spring Signage Ltd - http://www.springsignage.com
 
4
 * Copyright (C) 2015 Spring Signage Ltd
 
5
 * (${FILE_NAME})
 
6
 */
 
7
$formFields[] = Form::AddText('resolution', __('Resolution'), $resolution->resolution,
 
8
            __('A name for this Resolution'), 'r', 'required');
 
9
 
 
10
        $formFields[] = Form::AddNumber('width', __('Width'), $resolution->width,
 
11
            __('The Width for this Resolution'), 'w', 'required');
 
12
 
 
13
        $formFields[] = Form::AddNumber('height', __('Height'), $resolution->height,
 
14
            __('The Height for this Resolution'), 'h', 'required');
 
15
 
 
16
        $formFields[] = Form::AddCheckbox('enabled', __('Enable?'), $resolution->enabled,
 
17
            __('Is the Resolution enabled for use?'), 'e');
 
18
#}
 
19
 
 
20
{% extends "form-base.twig" %}
 
21
{% import "forms.twig" as forms %}
 
22
 
 
23
{% block formTitle %}
 
24
    {% trans "Title" %}
 
25
{% endblock %}
 
26
 
 
27
{% block formButtons %}
 
28
    {% trans "Save" %}, $("#<<id>>").submit()
 
29
    {% trans "Cancel" %}, XiboDialogClose()
 
30
    {% trans "Help" %}, XiboHelpRender("{{ help }}")
 
31
{% endblock %}
 
32
 
 
33
{% block formHtml %}
 
34
    <div class="row">
 
35
        <div class="col-md-12">
 
36
            <form id="<<id>>" class="XiboForm form-horizontal" method="put" action="{{ urlFor("resolution.edit", {"id": resolution.resolutionId}) }}">
 
37
 
 
38
            </form>
 
39
        </div>
 
40
    </div>
 
41
{% endblock %}
 
 
b'\\ No newline at end of file'