Changeset 8aea837


Ignore:
Timestamp:
Feb 17, 2013, 2:25:26 AM (13 years ago)
Author:
Alex Dehnert <adehnert@…>
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)
Message:

Incorporate feedback from CAC

  • Expand the description for "CAC Combo Only"
  • Link to the description of "CAC Key" on the ASA website
Location:
asadb
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • asadb/space/fixtures/LockTypes.xml

    re2ceffa r8aea837  
    66        <field type="TextField" name="description">Office with the standard CAC-maintained card access system.</field>
    77        <field type="CharField" name="info_addr">asa-exec@mit.edu</field>
     8        <field type="CharField" name="info_url"></field>
    89        <field type="CharField" name="db_update">cac-card</field>
    910    </object>
     
    1314        <field type="TextField" name="description">Office accessed through another office owned by the same group, which therefore do not have a separate lock.</field>
    1415        <field type="CharField" name="info_addr">asa-exec@mit.edu</field>
     16        <field type="CharField" name="info_url"></field>
    1517        <field type="CharField" name="db_update">none</field>
    1618    </object>
     
    1820        <field type="CharField" name="name">CAC Combo Only</field>
    1921        <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>
    2123        <field type="CharField" name="info_addr">caclocks@mit.edu</field>
     24        <field type="CharField" name="info_url"></field>
    2225        <field type="CharField" name="db_update">none</field>
    2326    </object>
     
    2730        <field type="TextField" name="description">Room accessible with a (physical, CAC-administered) key.</field>
    2831        <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>
    2933        <field type="CharField" name="db_update">none</field>
    3034    </object>
     
    3438        <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>
    3539        <field type="CharField" name="info_addr">asa-exec@mit.edu</field>
     40        <field type="CharField" name="info_url"></field>
    3641        <field type="CharField" name="db_update">none</field>
    3742    </object>
     
    4146        <field type="TextField" name="description">Room with access administered through SEMO (the Security and Emergency Management Office).</field>
    4247        <field type="CharField" name="info_addr">asa-exec@mit.edu</field>
     48        <field type="CharField" name="info_url"></field>
    4349        <field type="CharField" name="db_update">none</field>
    4450    </object>
  • asadb/space/migrations/0005_add_lock_type.py

    re2ceffa r8aea837  
    1616            ('description', self.gf('django.db.models.fields.TextField')()),
    1717            ('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)),
    1819            ('db_update', self.gf('django.db.models.fields.CharField')(default='none', max_length=20)),
    1920        ))
     
    9697            'id': ('django.db.models.fields.AutoField', [], {'primary_key': 'True'}),
    9798            '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'}),
    98100            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
    99101            'slug': ('django.db.models.fields.SlugField', [], {'unique': 'True', 'max_length': '50', 'db_index': 'True'})
     
    116118            'name': ('django.db.models.fields.CharField', [], {'max_length': '50'}),
    117119            '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'})
    119121        },
    120122        'space.spaceassignment': {
  • asadb/space/models.py

    re2ceffa r8aea837  
    2323    description = models.TextField()
    2424    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.')
    2526    db_update = models.CharField(max_length=20, default='none', choices=lock_db_update_choices)
    2627
  • asadb/template/space/lock_types.html

    rf6982d4 r8aea837  
    1818<tr>
    1919    <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>
    2121    <td><a href='mailto:{{lock_type.info_addr}}'>{{lock_type.info_addr}}</a></td>
    2222    <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.