Merge lp:~daker/loco-team-portal/fix.forms into lp:loco-team-portal

Proposed by Adnane Belmadiaf
Status: Merged
Approved by: Adnane Belmadiaf
Approved revision: 613
Merged at revision: 613
Proposed branch: lp:~daker/loco-team-portal/fix.forms
Merge into: lp:loco-team-portal
Diff against target: 994 lines (+437/-308)
14 files modified
loco_directory/events/forms.py (+4/-18)
loco_directory/events/models.py (+0/-1)
loco_directory/events/widgets.py (+90/-0)
loco_directory/media/css/styles.css (+208/-109)
loco_directory/media/js/events-ui.js (+1/-5)
loco_directory/meetings/forms.py (+4/-9)
loco_directory/templates/events/global_event_new.html (+13/-22)
loco_directory/templates/events/global_event_update.html (+13/-20)
loco_directory/templates/events/team_event_new.html (+19/-26)
loco_directory/templates/events/team_event_update.html (+13/-20)
loco_directory/templates/form.html (+18/-0)
loco_directory/templates/meetings/team_meeting_new.html (+11/-18)
loco_directory/templates/meetings/team_meeting_update.html (+11/-18)
loco_directory/templates/teams/team_update.html (+32/-42)
To merge this branch: bzr merge lp:~daker/loco-team-portal/fix.forms
Reviewer Review Type Date Requested Status
LoCo Team Portal Developers Pending
Review via email: mp+148917@code.launchpad.net

Commit message

Fixed the forms style

To post a comment you must log in.
Revision history for this message
Tarmac WebDev (tarmac-webdev) wrote :

Attempt to merge into lp:loco-team-portal failed due to conflicts:

text conflict in loco_directory/media/css/styles.css

lp:~daker/loco-team-portal/fix.forms updated
613. By Adnane Belmadiaf

Merged trunk
Fixed #797992

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'loco_directory/events/forms.py'
--- loco_directory/events/forms.py 2013-02-16 00:29:22 +0000
+++ loco_directory/events/forms.py 2013-02-18 21:30:29 +0000
@@ -8,6 +8,7 @@
8from venues.models import Venue8from venues.models import Venue
9from common.forms import RenderableMixin9from common.forms import RenderableMixin
10from userprofiles.models import UserProfile10from userprofiles.models import UserProfile
11from .widgets import DateTimeWidget
1112
12import itertools13import itertools
1314
@@ -43,23 +44,17 @@
4344
44 class Media:45 class Media:
45 css = {'all': (46 css = {'all': (
46 settings.MEDIA_URL + 'jquery-ui/css/css/smoothness/jquery-ui.css',47 settings.MEDIA_URL + 'jquery-ui/css/smoothness/jquery-ui.css',
47 settings.MEDIA_URL + 'jquery-ui-timepicker/css/ui-lightness/ui.timepickr.css',
48 settings.MEDIA_URL + 'css/colortip-1.0-jquery.css',
49 )}48 )}
50 js = (49 js = (
51 settings.MEDIA_URL + 'jquery/jquery.js',
52 settings.MEDIA_URL + 'jquery-ui/jquery-ui.js',50 settings.MEDIA_URL + 'jquery-ui/jquery-ui.js',
53 settings.MEDIA_URL + 'jquery-ui-timepicker/js/jquery.timepickr.min.js',
54 settings.MEDIA_URL + 'jquery-ui-timepicker/js/ui.timepickr.min.js',
55 settings.MEDIA_URL + 'js/colortip-1.0-jquery.js',
56 settings.MEDIA_URL + 'js/events-ui.js',51 settings.MEDIA_URL + 'js/events-ui.js',
57 )52 )
5853
59 def __init__(self, *args, **kargs):54 def __init__(self, *args, **kargs):
60 super(BaseEventForm, self).__init__(*args, **kargs)55 super(BaseEventForm, self).__init__(*args, **kargs)
61 self.fields['date_begin'].widget = forms.SplitDateTimeWidget()56 self.fields['date_begin'].widget = DateTimeWidget()
62 self.fields['date_end'].widget = forms.SplitDateTimeWidget()57 self.fields['date_end'].widget = DateTimeWidget()
6358
64 def clean(self):59 def clean(self):
65 begin = self.cleaned_data.get('date_begin')60 begin = self.cleaned_data.get('date_begin')
@@ -184,12 +179,3 @@
184 class Meta:179 class Meta:
185 model = TeamEventComment180 model = TeamEventComment
186 exclude = ('team_event', 'date_created', 'commenter_profile')181 exclude = ('team_event', 'date_created', 'commenter_profile')
187
188 class Media:
189 css = {'all': (
190 settings.MEDIA_URL + 'css/colortip-1.0-jquery.css',
191 )}
192 js = (
193 settings.MEDIA_URL + 'jquery/jquery.js',
194 settings.MEDIA_URL + 'js/colortip-1.0-jquery.js',
195 )
196182
=== modified file 'loco_directory/events/models.py'
--- loco_directory/events/models.py 2013-02-16 00:29:22 +0000
+++ loco_directory/events/models.py 2013-02-18 21:30:29 +0000
@@ -93,7 +93,6 @@
93 venue = models.ForeignKey(Venue, help_text=_('Venue for the Event'), verbose_name=_('Event Venue'), blank=True, null=True)93 venue = models.ForeignKey(Venue, help_text=_('Venue for the Event'), verbose_name=_('Event Venue'), blank=True, null=True)
94 channel = models.CharField(help_text=_('Channel for the Event hosted on the freenode IRC network. Ex. #ubuntu-us-fl'), max_length=25, verbose_name=_('Event Channel'), blank=True, null=True)94 channel = models.CharField(help_text=_('Channel for the Event hosted on the freenode IRC network. Ex. #ubuntu-us-fl'), max_length=25, verbose_name=_('Event Channel'), blank=True, null=True)
95 registration = models.URLField(verbose_name=_('Registration URL'), help_text=_('URL to register attendance (leave blank to use the built-in registration system)'), max_length=200, verify_exists=False, blank=True, null=True)95 registration = models.URLField(verbose_name=_('Registration URL'), help_text=_('URL to register attendance (leave blank to use the built-in registration system)'), max_length=200, verify_exists=False, blank=True, null=True)
96 template = 'events/team_event_li.inc.html'
9796
98 objects = TeamEventManager()97 objects = TeamEventManager()
9998
10099
=== added file 'loco_directory/events/widgets.py'
--- loco_directory/events/widgets.py 1970-01-01 00:00:00 +0000
+++ loco_directory/events/widgets.py 2013-02-18 21:30:29 +0000
@@ -0,0 +1,90 @@
1# -*- coding: utf-8 -*-
2from datetime import time
3from time import strptime, strftime
4
5from django import forms
6from django.utils.translation import ugettext as _
7
8
9class DateWidget(forms.DateInput):
10 """A more-friendly date widget with a pop-up calendar.
11 """
12 def __init__(self, attrs=None):
13 self.date_class = 'datepicker'
14 if not attrs:
15 attrs = {}
16 if 'date_class' in attrs:
17 self.date_class = attrs.pop('date_class')
18 if 'class' not in attrs:
19 attrs['class'] = 'date'
20
21 super(DateWidget, self).__init__(attrs=attrs)
22
23 def render(self, name, value, attrs=None):
24 return '<span class="%s">%s</span>' % (self.date_class, super(DateWidget, self).render(name, value, attrs))
25
26
27class TimeWidget(forms.MultiWidget):
28 """A more-friendly time widget.
29 """
30 def __init__(self, attrs=None):
31 self.time_class = 'timepicker'
32 if not attrs:
33 attrs = {}
34 if 'time_class' in attrs:
35 self.time_class = attrs.pop('time_class')
36 if 'class' not in attrs:
37 attrs['class'] = 'time'
38
39 widgets = (
40 forms.Select(attrs=attrs, choices=[(i + 1, "%02d" % (i + 1)) for i in range(0, 12)]),
41 forms.Select(attrs=attrs, choices=[(i, "%02d" % i) for i in range(00, 60, 15)]),
42 forms.Select(attrs=attrs, choices=[('AM', _('AM')), ('PM', _('PM'))])
43 )
44
45 super(TimeWidget, self).__init__(widgets, attrs)
46
47 def decompress(self, value):
48 if isinstance(value, time):
49 hour = int(value.strftime("%I"))
50 minute = int(value.strftime("%M"))
51 meridian = value.strftime("%p")
52 return (hour, minute, meridian)
53 return (None, None, None)
54
55 def value_from_datadict(self, data, files, name):
56 value = super(TimeWidget, self).value_from_datadict(data, files, name)
57 t = strptime("%02d:%02d %s" % (int(value[0]), int(value[1]), value[2]), "%I:%M %p")
58 return strftime("%H:%M:%S", t)
59
60 def format_output(self, rendered_widgets):
61 return '<span class="%s">%s%s%s</span>' % (
62 self.time_class,
63 rendered_widgets[0], rendered_widgets[1], rendered_widgets[2]
64 )
65
66
67class DateTimeWidget(forms.SplitDateTimeWidget):
68 """A more-friendly date/time widget.
69
70 Inspired by:
71
72 http://copiesofcopies.org/webl/2010/04/26/a-better-datetime-widget-for-django/
73 """
74 def __init__(self, attrs=None, date_format=None, time_format=None):
75 super(DateTimeWidget, self).__init__(attrs, date_format, time_format)
76 self.widgets = (
77 DateWidget(attrs=attrs),
78 TimeWidget(attrs=attrs),
79 )
80
81 def decompress(self, value):
82 if value:
83 d = strftime("%Y-%m-%d", value.timetuple())
84 t = strftime("%I:%M %p", value.timetuple())
85 return (d, t)
86 else:
87 return (None, None)
88
89 def format_output(self, rendered_widgets):
90 return '%s%s' % (rendered_widgets[0], rendered_widgets[1])
091
=== modified file 'loco_directory/media/css/styles.css'
--- loco_directory/media/css/styles.css 2013-02-16 18:50:41 +0000
+++ loco_directory/media/css/styles.css 2013-02-18 21:30:29 +0000
@@ -352,113 +352,133 @@
352 margin: 0;352 margin: 0;
353}353}
354354
355/* TODO: date_begin and date_end should have class .small */355#id_date_begin_0, #id_date_begin_1,
356#id_date_begin_0, #id_date_begin_1, #id_date_end_0, #id_date_end_1 {356#id_date_end_0, #id_date_end_1,
357 width: 134px;357#id_date_begin_1_0, #id_date_begin_1_1, #id_date_begin_1_2,
358}358#id_date_end_1_0, #id_date_end_1_1, #id_date_end_1_2 {
359#id_date_begin_0:focus, #id_date_begin_1:focus, #id_date_end_0:focus, #id_date_end_1:focus {359 width: 100px;
360 width: 132px;360 display: inline;
361}361}
362/*362
363.form {363#id_date_begin_1_0, #id_date_begin_1_1, #id_date_begin_1_2,
364 width: 500px;364#id_date_end_1_0, #id_date_end_1_1, #id_date_end_1_2 {
365 float:left;365 width: 60px;
366}366}
367367
368.form div{368#id_name, #id_announce, #id_registration {
369 padding-top:2px;369 width: 350px;
370 padding-bottom:2px;370}
371}371
372372form.form {
373.form div span.help{373 margin-bottom: 10px;
374 font-size:20px;374}
375 color: #DD4814;375
376 cursor:pointer;376form.form div{
377 vertical-align: top;377 margin-top: 10px;
378 display:inline;378 margin-bottom: 10px;
379379}
380}380
381381form.form div ul.errorlist + input,
382.form input[type="text"], .form textarea, .form select {382form.form div ul.errorlist + select,
383 padding: 5px;383form.form div ul.errorlist + textarea {
384 width: 200px;384 background-color: #fff6f6;
385 margin: 0px 0px 5px 0px;385 border-color: #eec3c7;
386 border: 1px solid #ccc;386}
387}387
388388form.form div label{
389.form input[type="text"] {389 font-size: 14px;
390 margin-right: 10px;390 margin-bottom: 5px;
391}391 cursor:default;
392392}
393.form input[type="checkbox"] {393
394 width: 200px;394form.form div span.h{
395 height:35px;395 color: #a1a1a1;
396 margin: 0px 0px 5px 0px;396 font-size: 12px;
397}397 font-style: italic;
398398 display: block;
399.form div div.field {399 margin-bottom: 15px;
400 float: left;400}
401 padding-top: 5px;401
402}402form.form input[type="text"], form.form textarea, form.form select {
403403 height: auto;
404.form div.approved, .form div.approved_date, .form div.expires_date {404 box-sizing: border-box;
405 height:30px;405 -moz-box-sizing: border-box;
406}406 border: 1px solid #ddd;
407407 padding: 8px;
408.form span.extra {408 border-radius: 3px;
409 float: left;409 -moz-border-radius: 3px;
410 padding-top: 5px;410 -webkit-border-radius: 3px;
411 font-size:0.8em;411 font-size: 13px;
412}412 margin-right: 10px;
413413}
414.form div div.field label{414
415 float: left;415form.form input[type="text"] {
416 padding-right: 10px;416 margin-right: 10px;
417 width: 170px;417}
418 font-size: 0.8em;418
419 text-align: right;419form.form input[type="checkbox"] {
420 font-weight:normal;420 margin: 0px 0px 5px 0px;
421}421}
422422
423.form div span.required {423form.form div span.required {
424 font-size:20px;424 font-size:20px;
425 color: red;425 color: #b94a5c;
426 margin-left:5px;426 margin-left: 5px;
427 vertical-align: top;427 vertical-align: top;
428 display:inline;428 display: inline;
429}429}
430430
431.form textarea {431form.form textarea {
432 height: 90px;432 height: 180px;
433 width: 270px;433 width: 520px!important;
434}434 max-width: 500px!important;
435435 min-width: auto!important;
436436}
437.form select:focus, .form textarea:focus, .form input:focus {437
438 border: 1px solid #900;438form.form select:focus, form.form textarea:focus, form.form input:focus {
439}439 border: 1px solid #900;
440440}
441.form input.submit-button {441
442 padding-left: 20px;442form.form input.btn {
443 padding-right: 20px;443 background: transparent url(../images/bg_btn.png) repeat-x top left;
444 float: right;444 -webkit-border-radius: 4px;
445 margin-right: 50px;445 -moz-border-radius: 4px;
446}446 border-radius: 4px;
447447 font-size: 13px;
448.form ul.errorlist {448 font-weight: bold;
449 margin: 0px;449 text-align: center;
450 padding: 0px;450 white-space: nowrap;
451}451 margin: 0;
452452 outline: 0;
453.form .errorlist li {453 padding: 7px 25px;
454 color: red;454 color: white;
455 font-weight: bold;455 text-shadow: 0 1px rgba(0, 0, 0, 0.1);
456 display: block;456 position: relative;
457 font-size: 0.8em;457 display: inline-block;
458 margin: 0px 130px 3px;458 text-transform: uppercase;
459 padding: 4px 5px;459}
460}460
461*/461form.form input.btn:active {
462 -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
463 -moz-box-shadow: inset 0 1px 2px rgba(0,0,0,0.3);
464 box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.3);
465}
466
467form.form ul.errorlist {
468 margin: 0px;
469 padding: 0px;
470 color: #b94a5c;
471 display: block;
472}
473
474form.form ul.errorlist li {
475 font-weight: bold;
476 display: block;
477 font-size: 0.9em;
478 margin: 0;
479 padding: 0;
480 background: transparent;
481}
462482
463h3.attendees-title {483h3.attendees-title {
464 display: inline-block;484 display: inline-block;
@@ -473,6 +493,11 @@
473 text-transform: uppercase;493 text-transform: uppercase;
474 margin-top: 10px;494 margin-top: 10px;
475}495}
496
497form fieldset {
498 padding: 15px 20px 15px 20px !important;
499}
500
476ul.attendees {501ul.attendees {
477 margin: 0;502 margin: 0;
478 padding: 0;503 padding: 0;
@@ -487,7 +512,7 @@
487}512}
488513
489.attendee-mugshot {514.attendee-mugshot {
490 cursor: pointer;515 cursor: pointer;
491 float: left;516 float: left;
492 height: 32px;517 height: 32px;
493 margin-right: 10px;518 margin-right: 10px;
@@ -1600,6 +1625,80 @@
1600 font-size: 0.8em;1625 font-size: 0.8em;
1601}1626}
16021627
1628
1629/* CALENDAR STYLES */
1630.ui-datepicker-calendar thead{
1631 display:none;
1632}
1633
1634#ui-datepicker-div{
1635 font-size:13px;
1636 line-height:1.8em;
1637 z-index:10000 !important;
1638 border:5px solid #455868;
1639 -webkit-border-radius: 4px;
1640 -moz-border-radius: 4px;
1641 border-radius: 4px;
1642 margin-top:6px;
1643 margin-left:-60px;
1644 padding-bottom:10px;
1645}
1646
1647.ui-datepicker{
1648 padding:0 !important;
1649 padding-bottom: 3px !important;
1650 width:auto !important;
1651}
1652
1653.ui-datepicker table{
1654 margin:0 !important;
1655 width:auto !important;
1656}
1657
1658.ui-datepicker td{
1659 padding:0 !important;
1660 border:1px solid #ECECEC !important;
1661 width:29px;
1662 height:29px;
1663}
1664
1665.ui-datepicker td a {
1666 text-align: center!important;
1667}
1668
1669.ui-state-default, .ui-widget-content .ui-state-default, .ui-widget-header .ui-state-default{
1670 border: 0 none !important;
1671 background:none !important;
1672}
1673
1674.ui-state-hover, .ui-widget-content .ui-state-hover, .ui-widget-header .ui-state-hover,
1675.ui-state-focus, .ui-widget-content .ui-state-focus, .ui-widget-header .ui-state-focus{
1676 border: 0 none !important;
1677 background: #909DA7 !important;
1678 color:#FFFFFF !important;
1679}
1680
1681.ui-state-active, .ui-widget-content .ui-state-active, .ui-widget-header .ui-state-active{
1682 color:#FFFFFF !important;
1683 background: #909DA7 !important;
1684}
1685
1686.ui-state-highlight, .ui-widget-content .ui-state-highlight, .ui-widget-header .ui-state-highlight{
1687 border: 0 none !important;
1688}
1689
1690.ui-datepicker-prev.ui-state-hover, .ui-datepicker-next.ui-state-hover {
1691 background:none !important;
1692}
1693
1694.ui-widget-header {
1695 background: #dd4814 !important;
1696 -moz-border-radius: 0 !important;
1697 -webkit-border-radius: 0 !important;
1698 border-radius: 0 !important;
1699 color: #fff !important;
1700}
1701
1603#lc {1702#lc {
1604 padding: 15px;1703 padding: 15px;
1605 border-top: 1px solid #E6E6E6;1704 border-top: 1px solid #E6E6E6;
@@ -1616,4 +1715,4 @@
16161715
1617#lc ul li:last-child {1716#lc ul li:last-child {
1618 margin-bottom: 0;1717 margin-bottom: 0;
1619}
1620\ No newline at end of file1718\ No newline at end of file
1719}
16211720
=== modified file 'loco_directory/media/js/events-ui.js'
--- loco_directory/media/js/events-ui.js 2012-03-22 21:57:48 +0000
+++ loco_directory/media/js/events-ui.js 2013-02-18 21:30:29 +0000
@@ -6,12 +6,8 @@
6 });6 });
77
8 $("#id_date_begin_0").datepicker({altField: "#id_date_end_0", altFormat: "yy-mm-dd"});8 $("#id_date_begin_0").datepicker({altField: "#id_date_end_0", altFormat: "yy-mm-dd"});
9 $('#id_date_begin_1').timepickr({ trigger: 'focus', convention: 24 });
109
11 $("#id_date_end_0").datepicker();10 $("#id_date_end_0").datepicker();
12 $('#id_date_end_1').timepickr({ trigger: 'focus', convention: 24 });
13
14 $('span[rel*=help]').colorTip({color:'orange'});
1511
16 $('#id_filtering').datepicker( {12 $('#id_filtering').datepicker( {
17 changeYear: true,13 changeYear: true,
@@ -19,7 +15,7 @@
19 showButtonPanel: true,15 showButtonPanel: true,
20 dateFormat: 'yy-m',16 dateFormat: 'yy-m',
21 onClose: function(dateText, inst) {17 onClose: function(dateText, inst) {
22 18
23 var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();19 var month = $("#ui-datepicker-div .ui-datepicker-month :selected").val();
24 var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();20 var year = $("#ui-datepicker-div .ui-datepicker-year :selected").val();
25 $(this).datepicker('setDate', new Date(year, month, 1));21 $(this).datepicker('setDate', new Date(year, month, 1));
2622
=== modified file 'loco_directory/meetings/forms.py'
--- loco_directory/meetings/forms.py 2013-02-05 23:23:30 +0000
+++ loco_directory/meetings/forms.py 2013-02-18 21:30:29 +0000
@@ -6,6 +6,7 @@
6from models import BaseMeeting, TeamMeeting, AgendaItem6from models import BaseMeeting, TeamMeeting, AgendaItem
7from common.forms import RenderableMixin7from common.forms import RenderableMixin
8from userprofiles.models import UserProfile8from userprofiles.models import UserProfile
9from events.widgets import DateTimeWidget
910
10import urllib11import urllib
1112
@@ -32,23 +33,17 @@
3233
33 class Media:34 class Media:
34 css = {'all': (35 css = {'all': (
35 settings.MEDIA_URL + 'jquery-ui/css/css/smoothness/jquery-ui.css',36 settings.MEDIA_URL + 'jquery-ui/css/smoothness/jquery-ui.css',
36 settings.MEDIA_URL + 'jquery-ui-timepicker/css/ui-lightness/ui.timepickr.css',
37 settings.MEDIA_URL + 'css/colortip-1.0-jquery.css',
38 )}37 )}
39 js = (38 js = (
40 settings.MEDIA_URL + 'jquery/jquery.js',
41 settings.MEDIA_URL + 'jquery-ui/jquery-ui.js',39 settings.MEDIA_URL + 'jquery-ui/jquery-ui.js',
42 settings.MEDIA_URL + 'jquery-ui-timepicker/js/jquery.timepickr.min.js',
43 settings.MEDIA_URL + 'jquery-ui-timepicker/js/ui.timepickr.min.js',
44 settings.MEDIA_URL + 'js/events-ui.js',40 settings.MEDIA_URL + 'js/events-ui.js',
45 settings.MEDIA_URL + 'js/colortip-1.0-jquery.js',
46 )41 )
4742
48 def __init__(self, *args, **kargs):43 def __init__(self, *args, **kargs):
49 super(BaseMeetingForm, self).__init__(*args, **kargs)44 super(BaseMeetingForm, self).__init__(*args, **kargs)
50 self.fields['date_begin'].widget = forms.SplitDateTimeWidget()45 self.fields['date_begin'].widget = DateTimeWidget()
51 self.fields['date_end'].widget = forms.SplitDateTimeWidget()46 self.fields['date_end'].widget = DateTimeWidget()
5247
53 def clean(self):48 def clean(self):
54 begin = self.cleaned_data.get('date_begin')49 begin = self.cleaned_data.get('date_begin')
5550
=== modified file 'loco_directory/templates/events/global_event_new.html'
--- loco_directory/templates/events/global_event_new.html 2012-12-26 17:23:50 +0000
+++ loco_directory/templates/events/global_event_new.html 2013-02-18 21:30:29 +0000
@@ -4,31 +4,22 @@
4{% block page_name %}{% trans "New Global Event" %}{% endblock %}4{% block page_name %}{% trans "New Global Event" %}{% endblock %}
55
6{% block extrahead %}{{ block.super }}6{% block extrahead %}{{ block.super }}
7{{form.media}}7{{ form.media }}
8<script type="text/javascript" src="{{MEDIA_URL}}js/colortip-1.0-jquery.js"></script>
9<link rel="stylesheet" type="text/css" href="{{MEDIA_URL}}css/colortip-1.0-jquery.css"/>
10{% endblock %}
11
12{% block extrafooter %}
13<script type="text/javascript"><!--
14$(document).ready(function(){
15 $('span[rel*=help]').colorTip({color:'orange'});
16});
17--></script>
18{% endblock %}8{% endblock %}
199
20{% block content %}10{% block content %}
21<div class="row">11<div class="row">
22<section class="span-9">12 <section class="span-9">
23 <form action="." method="post">{% csrf_token %}13 <div class="box_content">
24 <fieldset>14 <div class="pagelet">
25 <h3>{% trans "Add new Global Event" %}</h3>15 <form action="." method="post" class="form">{% csrf_token %}
26 {{ form.as_template }}16 <h2>{% trans "Add new Global Event" %}</h2>
27 </fieldset>17 {{ form.as_template }}
28 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}18 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
29 <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" /> 19 <input type="submit" name="submit" value="{% trans "Submit" %}" class="btn" />
30 </form>20 </form>
31</section>21 </div>
22 </div>
23 </section>
32</div>24</div>
33
34{% endblock %}25{% endblock %}
3526
=== modified file 'loco_directory/templates/events/global_event_update.html'
--- loco_directory/templates/events/global_event_update.html 2012-12-26 17:23:50 +0000
+++ loco_directory/templates/events/global_event_update.html 2013-02-18 21:30:29 +0000
@@ -4,29 +4,22 @@
4{% block page_name %}{% trans "Update Global Event" %}{% endblock %}4{% block page_name %}{% trans "Update Global Event" %}{% endblock %}
55
6{% block extrahead %}{{ block.super }}6{% block extrahead %}{{ block.super }}
7{{form.media}}7{{ form.media }}
8{% endblock %}
9
10{% block extrafooter %}
11<script type="text/javascript"><!--
12$(document).ready(function(){
13 $('span[rel*=help]').colorTip({color:'orange'});
14});
15--></script>
16{% endblock %}8{% endblock %}
179
18{% block content %}10{% block content %}
19<div class="row">11<div class="row">
20<section class="span-9">12 <section class="span-9">
21 <form action="." method="post">{% csrf_token %}13 <div class="box_content">
22 <fieldset>14 <div class="pagelet">
23 <h3>{% trans "Update Global Event" %}</h3>15 <form action="." method="post" class="form">{% csrf_token %}
24 {{ form.as_template }}16 <h2>{% trans "Update Global Event" %}</h2>
25 </fieldset>17 {{ form.as_template }}
26 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %} 18 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
27 <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" /> 19 <input type="submit" name="submit" value="{% trans "Submit" %}" class="btn" />
28 </form>20 </form>
29</section>21 </div>
22 </div>
23 </section>
30</div>24</div>
31
32{% endblock %}25{% endblock %}
3326
=== modified file 'loco_directory/templates/events/team_event_new.html'
--- loco_directory/templates/events/team_event_new.html 2012-12-26 17:23:50 +0000
+++ loco_directory/templates/events/team_event_new.html 2013-02-18 21:30:29 +0000
@@ -4,37 +4,30 @@
4{% block page_name %}{% trans "New Team Event" %}{% endblock %}4{% block page_name %}{% trans "New Team Event" %}{% endblock %}
55
6{% block extrahead %}{{ block.super }}6{% block extrahead %}{{ block.super }}
7{{form.media}}7{{ form.media }}
8{% if global_event %}8{% if global_event %}
9<script>9<script type="text/javascript">
10 $.datepicker.setDefaults({10 $.datepicker.setDefaults({
11 minDate: new Date({{global_event.date_begin.year}}, {{global_event.date_begin.month}}-1, {{global_event.date_begin.day}} ),11 minDate: new Date({{ global_event.date_begin.year }}, {{ global_event.date_begin.month }}-1, {{ global_event.date_begin.day }} ),
12 maxDate: new Date({{global_event.date_end.year}}, {{global_event.date_end.month}}-1, {{global_event.date_end.day}} )12 maxDate: new Date({{ global_event.date_end.year }}, {{ global_event.date_end.month }}-1, {{ global_event.date_end.day }} )
13 });13 });
14</script>14</script>
15{% endif %}15{% endif %}
16{% endblock %}16{% endblock %}
1717
18{% block extrafooter %}
19<script type="text/javascript"><!--
20$(document).ready(function(){
21 $('span[rel*=help]').colorTip({color:'orange'});
22});
23--></script>
24{% endblock %}
25
26{% block content %}18{% block content %}
27<div class="row">19<div class="row">
28<section class="span-9">20 <section class="span-9">
29 <form action="." method="post">{% csrf_token %}21 <div class="box_content">
30 <fieldset>22 <div class="pagelet">
31 <h3>{% trans "Add new Team Event for " %}{{ team_object.name}}<span class="supporting">{% trans 'is required' %}</span></h3>23 <form action="." method="post" class="form">{% csrf_token %}
32 {{ form.as_template }}24 <h2>{% trans "Add new Team Event for " %}{{ team_object.name}}</h2>
33 </fieldset>25 {{ form.as_template }}
34 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %} 26 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
35 <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" /> 27 <input type="submit" name="submit" value="{% trans "Submit" %}" class="btn" />
36 </form>28 </form>
37</section>29 </div>
30 </div>
31 </section>
38</div>32</div>
3933{% endblock %}
40{% endblock %}
41\ No newline at end of file34\ No newline at end of file
4235
=== modified file 'loco_directory/templates/events/team_event_update.html'
--- loco_directory/templates/events/team_event_update.html 2012-12-26 17:23:50 +0000
+++ loco_directory/templates/events/team_event_update.html 2013-02-18 21:30:29 +0000
@@ -4,29 +4,22 @@
4{% block page_name %}{% trans "Update Team Event" %}{% endblock %}4{% block page_name %}{% trans "Update Team Event" %}{% endblock %}
55
6{% block extrahead %}{{ block.super }}6{% block extrahead %}{{ block.super }}
7{{form.media}}7{{ form.media }}
8{% endblock %}
9
10{% block extrafooter %}
11<script type="text/javascript"><!--
12$(document).ready(function(){
13 $('span[rel*=help]').colorTip({color:'orange'});
14});
15--></script>
16{% endblock %}8{% endblock %}
179
18{% block content %}10{% block content %}
19<div class="row">11<div class="row">
20<section class="span-9">12 <section class="span-9">
21 <form action="." method="post">{% csrf_token %}13 <div class="box_content">
22 <fieldset>14 <div class="pagelet">
23 <h3>{% trans "Update Team Event" %}</h3>15 <form action="." method="post" class="form">{% csrf_token %}
24 {{ form.as_template }}16 <h2>{% trans "Update Team Event" %}</h2>
25 </fieldset>17 {{ form.as_template }}
26 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}18 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
27 <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" /> 19 <input type="submit" name="submit" value="{% trans "Submit" %}" class="btn" />
28 </form>20 </form>
29</section>21 </div>
22 </div>
23 </section>
30</div>24</div>
31
32{% endblock %}25{% endblock %}
3326
=== added file 'loco_directory/templates/form.html'
--- loco_directory/templates/form.html 1970-01-01 00:00:00 +0000
+++ loco_directory/templates/form.html 2013-02-18 21:30:29 +0000
@@ -0,0 +1,18 @@
1{% load i18n %}
2{% for field in form.visible_fields %}
3 <div>
4 {% if field.field.label %}<label for="id_{{ field.name }}"{% if field.field.required %} class="required"{% endif %}>{{ field.label }}</label>{% endif %}
5 {% if field.errors %}
6 <ul class="errorlist">
7 {% for error in field.errors %}
8 <li class="error">{{ error }}</li>
9 {% endfor %}
10 </ul>
11 {% endif %}
12 {{ field }}
13 {% if field.help_text %}<span class="h">{{ field.help_text }}</span>{% endif %}
14 </div>
15{% endfor %}
16{% for field in form.hidden_fields %}
17 <div class="hidden">{{ field }}</div>
18{% endfor %}
019
=== modified file 'loco_directory/templates/meetings/team_meeting_new.html'
--- loco_directory/templates/meetings/team_meeting_new.html 2012-12-26 17:23:50 +0000
+++ loco_directory/templates/meetings/team_meeting_new.html 2013-02-18 21:30:29 +0000
@@ -4,29 +4,22 @@
4{% block page_name %}{% trans "New Team Meeting" %}{% endblock %}4{% block page_name %}{% trans "New Team Meeting" %}{% endblock %}
55
6{% block extrahead %}{{ block.super }}6{% block extrahead %}{{ block.super }}
7{{form.media}}7{{ form.media }}
8{% endblock %}
9
10{% block extrafooter %}
11<script type="text/javascript"><!--
12$(document).ready(function(){
13 $('span[rel*=help]').colorTip({color:'orange'});
14});
15--></script>
16{% endblock %}8{% endblock %}
179
18{% block content %}10{% block content %}
19<div class="row">11<div class="row">
20 <section class="span-9">12 <section class="span-9">
21 <form action="." method="post">{% csrf_token %}13 <div class="box_content">
22 <fieldset>14 <div class="pagelet">
23 <h3>{% trans "Add new Team Meeting for " %}{{ team_object.name}}</h3>15 <form action="." method="post" class="form">{% csrf_token %}
24 {{ form.as_template }}16 <h2>{% trans "Add new Team Meeting for " %}{{ team_object.name}}</h2>
25 </fieldset>17 {{ form.as_template }}
26 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %} 18 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
27 <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" />19 <input type="submit" name="submit" value="{% trans "Submit" %}" class="btn" />
28 </form>20 </form>
21 </div>
22 </div>
29 </section>23 </section>
30</div>24</div>
31
32{% endblock %}25{% endblock %}
3326
=== modified file 'loco_directory/templates/meetings/team_meeting_update.html'
--- loco_directory/templates/meetings/team_meeting_update.html 2012-12-26 17:23:50 +0000
+++ loco_directory/templates/meetings/team_meeting_update.html 2013-02-18 21:30:29 +0000
@@ -4,29 +4,22 @@
4{% block page_name %}{% trans "Update Team Meeting" %}{% endblock %}4{% block page_name %}{% trans "Update Team Meeting" %}{% endblock %}
55
6{% block extrahead %}{{ block.super }}6{% block extrahead %}{{ block.super }}
7{{form.media}}7{{ form.media }}
8{% endblock %}
9
10{% block extrafooter %}
11<script type="text/javascript"><!--
12$(document).ready(function(){
13 $('span[rel*=help]').colorTip({color:'orange'});
14});
15--></script>
16{% endblock %}8{% endblock %}
179
18{% block content %}10{% block content %}
19<div class="row">11<div class="row">
20 <section class="span-9">12 <section class="span-9">
21 <form action="." method="post">{% csrf_token %}13 <div class="box_content">
22 <fieldset>14 <div class="pagelet">
23 <h3>{% trans "Update Team Meeting" %}</h3>15 <form action="." method="post" class="form">{% csrf_token %}
24 {{ form.as_template }}16 <h2>{% trans "Update Team Meeting" %}</h2>
25 </fieldset>17 {{ form.as_template }}
26 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %} 18 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
27 <input type="submit" name="submit" value="{% trans "Submit" %}" class="submit-button" />19 <input type="submit" name="submit" value="{% trans "Submit" %}" class="btn" />
28 </form>20 </form>
21 </div>
22 </div>
29 </section>23 </section>
30</div>24</div>
31
32{% endblock %}25{% endblock %}
3326
=== modified file 'loco_directory/templates/teams/team_update.html'
--- loco_directory/templates/teams/team_update.html 2012-12-26 17:23:50 +0000
+++ loco_directory/templates/teams/team_update.html 2013-02-18 21:30:29 +0000
@@ -1,62 +1,52 @@
1{% extends "base.html" %}1{% extends "base.html" %}
2{% load i18n %}2{% load i18n %}
33
4{% block page_name %}{% blocktrans with team.name as teamname %}Update {{teamname}}{% endblocktrans %}{% endblock %}4{% block page_name %}{% blocktrans with team.name as teamname %}Update {{ teamname }}{% endblocktrans %}{% endblock %}
55
6{% block extrahead %}{{block.super}}6{% block extrahead %}{{ block.super }}
7{{ form.media }}7{{ form.media }}
8{% endblock %}8{% endblock %}
99
10{% block extrafooter %}
11<script type="text/javascript"><!--
12$(document).ready(function(){
13 $('span[rel*=help]').colorTip({color:'orange'});
14});
15--></script>
16{% endblock %}
17
18{% block sub_nav_links %}10{% block sub_nav_links %}
19 <li><a class="sub-nav-item" href="/teams">{% trans "Back to Teams List" %}</a></li>11 <li><a class="sub-nav-item" href="/teams/">{% trans "Back to Teams List" %}</a></li>
20 <li><a class="sub-nav-item" href="/teams/{{ team.lp_name }}">{% trans "Back to Team Details" %}</a></li>12 <li><a class="sub-nav-item" href="/teams/{{ team.lp_name }}/">{% trans "Back to Team Details" %}</a></li>
21{% endblock %}13{% endblock %}
2214
23{% block content %}15{% block content %}
24
25<div class="row">16<div class="row">
26<section class="span-9">17 <section class="span-9">
27 <article id="form">
28 {% if form.errors %}18 {% if form.errors %}
29 <p style="color: red;">19 <p style="color: red;">
30 {% trans "Please correct the error" %}{{ form.errors|pluralize }} below.20 {% trans "Please correct the error" %}{{ form.errors|pluralize }} below.
31 </p>21 </p>
32 {% endif %}22 {% endif %}
3323 <div class="box_content">
34 <form action="{{ request.path_info }}" method="POST">{% csrf_token %}24 <div class="pagelet">
35 <fieldset>25 <form action="." method="post" class="form">{% csrf_token %}
36 <h3>{% trans "Update the information below" %}</h3>26 <h2>{% trans "Update the information below" %}</h2>
37 {{ form.as_template }}27 {{ form.as_template }}
38 </fieldset>28 <fieldset>
39 <fieldset>29 <h3>{% trans "Static information" %}</h3>
40 <h3>{% trans "Static information" %}</h3>30 <div class="approved">
41 <div class="approved">31 <span>Approved :</span>
42 <div class="field"><label for="approved">Approved :</label></div>32 <span>{% if team.approved %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %}</span>
43 <span class="extra">{% if team.approved %}{% trans "Yes" %}{% else %}{% trans "No" %}{% endif %}</span>33 </div>
44 </div>34 {% if team.approved %}
45 {% if team.approved %}35 <div class="approved_date">
46 <div class="approved_date">36 <span>Date Approved :</span>
47 <div class="field"><label for="approved_date">Date Approved :</label></div>37 <span>{{ team.approved_date }}</span>
48 <span class="extra">{{ team.approved_date }}</span>38 </div>
49 </div>39 <div class="expires_date">
50 <div class="expires_date">40 <span>Reapproval Date :</span>
51 <div class="field"><label for="expires_date">Reapproval Date :</label></div>41 <span>{{ team.expires_date }}</span>
52 <span class="extra">{{ team.expires_date }}</span>42 </div>
53 </div>43 {% endif %}
54 {% endif %}44 </fieldset>
55 </fieldset>45 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %}
56 {% if is_popup %}<input type="hidden" name="_popup" value="1">{% endif %} 46 <input type="submit" name="submit" value="{% trans "Update" %}" class="btn" />
57 <input type="submit" name="submit" value="{% trans "Update Information Now!" %}" class="submit-button" /> 47 </form>
58 </form>48 </div>
49 </div>
59 </section>50 </section>
60</div>51</div>
61
62{% endblock %}52{% endblock %}

Subscribers

People subscribed via source and target branches