~xibo-maintainers/xibo/tempel

« back to all changes in this revision

Viewing changes to views/dataset-form-delete.twig

  • Committer: Peter
  • Date: 2015-07-23 14:23:17 UTC
  • mto: This revision was merged to the branch mainline in revision 445.
  • Revision ID: git-v1:cc537a2278bd6a03e3b68dfec07cfe89e25d0b94
dataSet and maintenance views

dataSet add/edit/delete
maintenance export/tidy

Show diffs side-by-side

added added

removed removed

Lines of Context:
4
4
 * Copyright (C) 2015 Spring Signage Ltd
5
5
 * (${FILE_NAME})
6
6
 */
7
 
$formFields[] = Form::AddMessage(__('Are you sure you want to delete?'));
8
 
        $formFields[] = Form::AddCheckbox('deleteData', __('Delete any associated data?'), NULL,
9
 
            __('Please tick the box if you would like to delete all the Data contained in this DataSet'), 'c');
10
 
 
11
7
#}
12
8
 
13
9
{% extends "form-base.twig" %}
20
16
{% block formButtons %}
21
17
    {% trans "Help" %}, XiboHelpRender("{{ help }}")
22
18
    {% trans "Cancel" %}, XiboDialogClose()
23
 
    {% trans "Save" %}, $("#<<id>>").submit()    
 
19
    {% trans "Yes" %}, $("#datasetDeleteForm").submit()    
24
20
{% endblock %}
25
21
 
26
22
{% block formHtml %}
27
23
    <div class="row">
28
24
        <div class="col-md-12">
29
 
            <form id="<<id>>" class="XiboForm form-horizontal" method="delete" action="{{ urlFor("dataSet.delete") }}">
 
25
            <form id="dataSetDeleteForm" class="XiboForm form-horizontal" method="delete" action="{{ urlFor("dataSet.delete") }}">
 
26
                {% set message %}{% trans "Are you sure you want to delete?" %}{% endset %}
 
27
                {{ forms.message(message) }}
30
28
 
 
29
                {% set title %}{% trans "Delete any associated data?" %}{% endset %}
 
30
                {% set helpText %}{% trans "Please tick the box if you would like to delete all the Data contained in this DataSet" %}{% endset %}
 
31
                {{ forms.checkbox("deleteData", title, "", helpText) }}
31
32
            </form>
32
33
        </div>
33
34
    </div>