Changeset 8aea837
- Timestamp:
- Feb 17, 2013, 2:25:26 AM (13 years ago)
- Branches:
- master, space-access, stable, stage
- Children:
- 21f7242
- Parents:
- 59506d6
- git-author:
- Alex Dehnert <adehnert@…> (02/17/13 02:25:26)
- git-committer:
- Alex Dehnert <adehnert@…> (02/17/13 02:25:26)
- Location:
- asadb
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
asadb/space/fixtures/LockTypes.xml
re2ceffa r8aea837 6 6 <field type="TextField" name="description">Office with the standard CAC-maintained card access system.</field> 7 7 <field type="CharField" name="info_addr">asa-exec@mit.edu</field> 8 <field type="CharField" name="info_url"></field> 8 9 <field type="CharField" name="db_update">cac-card</field> 9 10 </object> … … 13 14 <field type="TextField" name="description">Office accessed through another office owned by the same group, which therefore do not have a separate lock.</field> 14 15 <field type="CharField" name="info_addr">asa-exec@mit.edu</field> 16 <field type="CharField" name="info_url"></field> 15 17 <field type="CharField" name="db_update">none</field> 16 18 </object> … … 18 20 <field type="CharField" name="name">CAC Combo Only</field> 19 21 <field type="SlugField" name="slug">cac-combo</field> 20 <field type="TextField" name="description">Room accessible only with a CAC-administered combination, rather than using IDs. </field>22 <field type="TextField" name="description">Room accessible only with a CAC-administered combination, rather than using IDs. Presidents and Treasurers of organizations with this type of lock can come to the CAC office to request a combo change.</field> 21 23 <field type="CharField" name="info_addr">caclocks@mit.edu</field> 24 <field type="CharField" name="info_url"></field> 22 25 <field type="CharField" name="db_update">none</field> 23 26 </object> … … 27 30 <field type="TextField" name="description">Room accessible with a (physical, CAC-administered) key.</field> 28 31 <field type="CharField" name="info_addr">asa-exec@mit.edu</field> 32 <field type="CharField" name="info_url">http://web.mit.edu/asa/resources/office-space-alloc.html#access-keys</field> 29 33 <field type="CharField" name="db_update">none</field> 30 34 </object> … … 34 38 <field type="TextField" name="description">Room that the ASA does not (currently) know how to manage the access of. (If you know, please tell us at asa-exec@mit.edu.)</field> 35 39 <field type="CharField" name="info_addr">asa-exec@mit.edu</field> 40 <field type="CharField" name="info_url"></field> 36 41 <field type="CharField" name="db_update">none</field> 37 42 </object> … … 41 46 <field type="TextField" name="description">Room with access administered through SEMO (the Security and Emergency Management Office).</field> 42 47 <field type="CharField" name="info_addr">asa-exec@mit.edu</field> 48 <field type="CharField" name="info_url"></field> 43 49 <field type="CharField" name="db_update">none</field> 44 50 </object> -
asadb/space/migrations/0005_add_lock_type.py
re2ceffa r8aea837 16 16 ('description', self.gf('django.db.models.fields.TextField')()), 17 17 ('info_addr', self.gf('django.db.models.fields.EmailField')(default='asa-exec@mit.edu', max_length=75)), 18 ('info_url', self.gf('django.db.models.fields.URLField')(max_length=200, blank=True)), 18 19 ('db_update', self.gf('django.db.models.fields.CharField')(default='none', max_length=20)), 19 20 )) … … 96 97 'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}), 97 98 'info_addr': ('django.db.models.fields.EmailField', [], {'default': "'asa-exec@mit.edu'", 'max_length': '75'}), 99 'info_url': ('django.db.models.fields.URLField', [], {'max_length': '200', 'blank': 'True'}), 98 100 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), 99 101 'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50', 'db_index': 'True'}) … … 116 118 'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}), 117 119 'space': ('django.db.models.fields.related.ForeignKey', [], {'to': "orm['space.Space']"}), 118 'start': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 1, 27, 17, 53, 25, 630881)', 'db_index': 'True'})120 'start': ('django.db.models.fields.DateTimeField', [], {'default': 'datetime.datetime(2013, 2, 17, 2, 11, 27, 140773)', 'db_index': 'True'}) 119 121 }, 120 122 'space.spaceassignment': { -
asadb/space/models.py
re2ceffa r8aea837 23 23 description = models.TextField() 24 24 info_addr = models.EmailField(default='asa-exec@mit.edu', help_text='Address groups should email to get more information about managing access through this lock type.') 25 info_url = models.URLField(blank=True, help_text='URL that groups can visit to get more information about this lock type.') 25 26 db_update = models.CharField(max_length=20, default='none', choices=lock_db_update_choices) 26 27 -
asadb/template/space/lock_types.html
rf6982d4 r8aea837 18 18 <tr> 19 19 <th>{{lock_type.name}}</th> 20 <td>{{lock_type.description}} </td>20 <td>{{lock_type.description}}{% if lock_type.info_url %} <a href='{{lock_type.info_url}}'>Details.</a>{%endif%}</td> 21 21 <td><a href='mailto:{{lock_type.info_addr}}'>{{lock_type.info_addr}}</a></td> 22 22 <td>{% if lock_type.db_update != "none" %}Yes: {%endif%}{{lock_type.get_db_update_display}}</td>
Note: See TracChangeset
for help on using the changeset viewer.