Blame view

FlaskT.v0.3/templates/edit.html 5.29 KB
1f1943eb   qijun   initial commit
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
{% extends "base.html" %}
{% block content %}
    {{ super() }}
    <div class="container">
        <div class="row">
            <div class="col-md-8 col-md-offset-2">

                <div class="jumbotron">
                    <table id="datable" class="table table-striped table-bordered dt-head-right"
                           cellspacing="0"
                           width="100%">

                        <tbody>
                        <tr>

                            <td align="center"><strong>Task Name</strong>
                            </td>
                            <td align="center" class="text-info">
                                <strong><em>
                                    <a href="#" id="edit_task_name" data-type="text"
                                       data-url="{{ url_for('update',category=0) }}"
                                       data-pk="{{ task.id }}"
                                       data-title="New Taskname">{{ task.name }}</a></em></strong>
                        </tr>
                        <tr>

                            <td align="center"><strong>Pub Date</strong></td>
                            <td align="center">{{ task.pubdate }}</td>
                        </tr>
                        <tr>

                            <td align="center"><strong>Due Date</strong></td>
                            <td align="center"><a href="#" id="edit_task_due" data-type="text"
                                                  data-url="{{ url_for('update',category=1) }}"
                                                  data-pk="{{ task.id }}"
                                                  data-title="New Duedate(mm/dd/yyyy)">{{ task.duedate }}</a>
                            </td>
                        </tr>
                        <tr>

                            <td align="center"><strong>Description</strong></td>
                            <td align="center"><a href="#" id="edit_task_desc" data-type="text"
                                                  data-url="{{ url_for('update',category=3) }}"
                                                  data-pk="{{ task.id }}"
                                                  data-title="New Description">{{ task.description }}</a>
                            </td>
                        </tr>
                        <tr>

                            <td align="center"><strong>Attached File</strong></td>
                            <td align="center">
                                <a href="#" id="edit_task_file" data-type="text"
                                   data-url="{{ url_for('update',category=2) }}"
                                   data-pk="{{ task.id }}"
                                   data-title="New Attached File">{{ task.attachfile }}</a>

                            </td>
                        </tr>
                        <tr>

                            <td align="center"><strong>Priority</strong></td>
                            <td align="center"
                                class="text-success">
                                <a href="#" id="edit_tasksel_priority" data-type="select"
                                   data-url="{{ url_for('update',category=4) }}"
                                   data-pk="{{ task.id }}"
                                   data-value="{{ task.priority }}"
                                   data-title="New Priority">{{ task.priority }}</a>
                                ({{ task.enum_priority[task.priority] }})
                            </td>
                        </tr>
                        <tr>

                            <td align="center"><strong>Status</strong></td>
                            <td align="center"
                                class="text-success">
                                <a href="#" id="edit_tasksel_status" data-type="select"
                                   data-url="{{ url_for('update',category=5) }}"
                                   data-pk="{{ task.id }}"
                                   data-value="{{ task.status }}"
                                   data-title="New Status"> {{ task.status }}</a>

                                ({{ task.enum_status[task.status] }})
                            </td>

                        </tr>
                        <tr>

                            <td align="center"><strong>Workers</strong></td>

                            <td align="center">
                                {% for user in users %}
                                    <span class="label colored">{{ user.username }}</span>
                                {% endfor %}

                            </td>
                        </tr>
                        </tbody>
                    </table>
                    <div class="form-actions">

                        <button type="button" class="btn btn-primary"
                                onclick="location.href='{{ url_for('info',task_id=task.id) }}'">
                            Save
                        </button>


                        <button type="button" class="btn"
                                onclick="location.href='{{ url_for('info',task_id=task.id) }}'">
                            Cancel
                        </button>
                    </div>
                </div>
            </div>
        </div>
    </div>
{% endblock %}