Commit ecb63dba75c940b77ea3fa0fe5eedf5899372e0c

Authored by fbormann
1 parent 24f83d2d

modified plain text for trans template tags

Showing 1 changed file with 17 additions and 73 deletions   Show diff stats
courses/templates/course/view.html
... ... @@ -37,14 +37,14 @@
37 37  
38 38 <div class="panel panel-primary navigation">
39 39 <div class="panel-heading">
40   - <h3 class="panel-title">Actions</h3>
  40 + <h3 class="panel-title">{% trans "Actions" %}</h3>
41 41 </div>
42 42 <div class="panel-body">
43 43 <ul class="nav nav-pills nav-stacked">
44   - <li><a href="teacher/course_participants_teacher.html" target="_self">Participants</a></li>
45   - <li><a href="javascript:void(0)">Replicate Subject</a></li>
46   - <li><a href="javascript:void(0)">Create Subject</a></li>
47   - <li><a href="javascript:void(0)" data-toggle="modal" data-target="#myModal">Create Topic</a></li>
  44 + <li><a href="teacher/course_participants_teacher.html" target="_self"> {% trans "Participants" %}</a></li>
  45 + <li><a href="javascript:void(0)">{% trans "Replicate Subject" %}</a></li>
  46 + <li><a href="javascript:void(0)">{% trans "Create Subject" %}t</a></li>
  47 + <li><a href="javascript:void(0)" data-toggle="modal" data-target="#myModal">{% trans "Create Topic" %}</a></li>
48 48 </ul>
49 49 </div>
50 50 </div>
... ... @@ -68,10 +68,10 @@
68 68 <i class="fa fa-ellipsis-v fa-2x" aria-hidden="true"></i>
69 69 <div class="ripple-container"></div></button>
70 70 <ul class="dropdown-menu" aria-labelledby="moreActions">
71   - <li><a href="javascript:void(0)" data-toggle="modal" data-target="#createSubject"><i class="fa fa-plus-square-o" aria-hidden="true"></i>&nbsp; Create Subject</a></li>
72   - <li><a href="javascript:void(0)" data-toggle="modal" data-target="#myModal4"><i class="fa fa-files-o fa-fw" aria-hidden="true"></i>&nbsp; Replicate</a></li>
73   - <li><a href="{% url 'course:update' course.slug %}"><i class="fa fa-pencil fa-fw" aria-hidden="true"></i>&nbsp; Edit</a></li>
74   - <li><a href="javascript:void(0)" data-toggle="modal" data-target="#myModal2"><i class="fa fa-trash fa-fw" aria-hidden="true"></i>&nbsp; Remove</a></li>
  71 + <li><a href="javascript:void(0)" data-toggle="modal" data-target="#createSubject"><i class="fa fa-plus-square-o" aria-hidden="true"></i>&nbsp; {% trans "Create Subject" %}</a></li>
  72 + <li><a href="javascript:void(0)" data-toggle="modal" data-target="#myModal4"><i class="fa fa-files-o fa-fw" aria-hidden="true"></i>&nbsp; {% trans "Replicate" %}</a></li>
  73 + <li><a href="{% url 'course:update' course.slug %}"><i class="fa fa-pencil fa-fw" aria-hidden="true"></i>&nbsp; {% trans "Edit" %}</a></li>
  74 + <li><a href="javascript:void(0)" data-toggle="modal" data-target="#myModal2"><i class="fa fa-trash fa-fw" aria-hidden="true"></i>&nbsp; {% trans "Remove" %}</a></li>
75 75 </ul>
76 76 </div>
77 77 </div>
... ... @@ -80,7 +80,6 @@
80 80 </div>
81 81 <div class="panel-body">
82 82 <p><b>Course Name: </b>{{course.name}}</p>
83   - <p><b>Duration (in semesters): </b>09</p>
84 83 <p><b>Coordinator: </b>{{course.professors}}</p>
85 84 <p>
86 85 <b>Description:</b>
... ... @@ -91,75 +90,20 @@
91 90  
92 91 </div>
93 92 </div>
94   - <div class="btn-group btn-group-justified btn-group-raised">
95   - <a href="{% url 'course:manage' %}" class="btn btn-raised btn-info">Todos</a>
96   - {% for category_subject in categorys_subjects %}
97   - <a href="?category={{category_subject.name}}" class="btn btn-raised btn-primary">{{category_subject.name}}</a>
98   - {% endfor %}
99   - </div>
  93 +
100 94 <!-- MODAL CREATE SUBJECT -->
101 95 <div class="modal" tabindex="-1" role="dialog " id="createSubject">
102 96 <div class="modal-dialog">
103 97 <div class="modal-content">
104 98 <div class="modal-header">
105   - <h4 class="modal-title">Create a New Subject</h4>
  99 + <h4 class="modal-title">{% trans "Create a New Subject" %}</h4>
106 100 </div>
107 101 <div class="modal-body">
108 102 <div>
109   - <!--<form class="form-horizontal">
110   - <div class="form-group is-empty">
111   - <label class="control-label col-md-2 col-md-offset-1 col-xs-2 col-xs-offset-1">Name</label>
112   - <div class="col-md-8 col-xs-8">
113   - <input type="text" class="form-control" name="nameSubject">
114   - </div>
115   - </div>
116   - <div class="form-group is-empty">
117   - <label class="control-label col-md-2 col-md-offset-1 col-xs-2 col-xs-offset-1">Description</label>
118   - <div class="col-md-8 col-xs-8">
119   - <textarea class="form-control" rows="3" id="textAreaSubject"></textarea>
120   - <span class="help-block">Sign the description of the course.</span>
121   - </div>
122   - </div>
123   - <div class="form-group is-empty">
124   - <label class="control-label col-md-2 col-md-offset-1 col-xs-2 col-xs-offset-1">Goals</label>
125   - <div class="col-md-8 col-xs-8">
126   - <textarea class="form-control" rows="3" id="textAreaSubject"></textarea>
127   - <span class="help-block">Sign the objectives of the course until the end of the course.</span>
128   - </div>
129   - </div>
130   - <div class="form-group is-empty">
131   - <label class="control-label col-md-2 col-md-offset-1 col-xs-2 col-xs-offset-1">Students Limit</label>
132   - <div class="col-md-8 col-xs-8">
133   - <input type="number" class="form-control" name="StudentLimit">
134   - </div>
135   - </div>
136   - <div class="row">
137   - <div class="col-md-6 col-xs-12">
138   - <div class="row">
139   - <div class="form-group is-empty">
140   - <label class="control-label col-md-4 col-xs-4 col-xs-offset-1">Begining</label>
141   - <div class="col-md-8 col-xs-6">
142   - <input type="date" class="form-control" name="BeginDate">
143   - </div>
144   - </div>
145   - </div>
146   - </div>
147   - <div class="col-md-6 col-xs-12">
148   - <div class="row">
149   - <div class="form-group is-empty">
150   - <label class="control-label col-md-4 col-xs-4 col-xs-offset-1">End</label>
151   - <div class="col-md-8 col-xs-6">
152   - <input type="date" class="form-control" name="EndDate">
153   - </div>
154   - </div>
155   - </div>
156   - </div>
157   - </div>
158   - </form>-->
159 103 </div>
160 104 <div class="modal-footer">
161   - <button type="button" data-dismiss="modal" class="btn btn-default">Cancel</button>
162   - <a href="#" target="_self"><button type="button" class="btn btn-primary">Confirm</button></a>
  105 + <button type="button" data-dismiss="modal" class="btn btn-default">{% trans "Cancel" %}</button>
  106 + <a href="#" target="_self"><button type="button" class="btn btn-primary"> {% trans "Confirm" %}</button></a>
163 107 </div>
164 108 </div>
165 109 </div>
... ... @@ -182,11 +126,11 @@
182 126 <h4 class="modal-title"></h4>
183 127 </div>
184 128 <div class="modal-body">
185   - <p>Are you sure you want to remove this subject?</p>
  129 + <p>{% trans "Are you sure you want to remove this subject?" %}</p>
186 130 </div>
187 131 <div class="modal-footer">
188 132  
189   - <a href="http://127.0.0.1:8080/html/screens/users/teacher/home_course_teacher.html" target="_self"><button type="button" class="btn btn-primary">Confirm</button></a>
  133 + <a href="http://127.0.0.1:8080/html/screens/users/teacher/home_course_teacher.html" target="_self"><button type="button" class="btn btn-primary">{% trans "Confirm" %}</button></a>
190 134  
191 135 </div>
192 136 </div>
... ... @@ -317,11 +261,11 @@
317 261 <h4 class="modal-title"></h4>
318 262 </div>
319 263 <div class="modal-body">
320   - <p>Are you sure you want to remove this subject?</p>
  264 + <p> {% trans "Are you sure you want to remove this subject?" %}</p>
321 265 </div>
322 266 <div class="modal-footer">
323 267  
324   - <a href="http://127.0.0.1:8080/html/screens/users/teacher/home_course_teacher.html" target="_self"><button type="button" class="btn btn-primary">Confirm</button></a>
  268 + <a href="http://127.0.0.1:8080/html/screens/users/teacher/home_course_teacher.html" target="_self"><button type="button" class="btn btn-primary">{% trans "Confirm" %}</button></a>
325 269  
326 270 </div>
327 271 </div>
... ...