Hide Honor Code mentions if site does not have an Honor Code
This commit is contained in:
@@ -1582,7 +1582,7 @@ MKTG_URL_LINK_MAP = {
|
||||
'COURSES': 'courses',
|
||||
'ROOT': 'root',
|
||||
'TOS': 'tos',
|
||||
'HONOR': 'honor',
|
||||
'HONOR': 'honor', # If your site does not have an honor code, simply delete this line.
|
||||
'PRIVACY': 'privacy',
|
||||
'PRESS': 'press',
|
||||
'BLOG': 'blog',
|
||||
|
||||
@@ -339,6 +339,8 @@
|
||||
% endif
|
||||
|
||||
% if settings.REGISTRATION_EXTRA_FIELDS['honor_code'] != 'hidden':
|
||||
## If the stanford theme isn't enabled, check if we have an Honor Code link in our marketing map
|
||||
% if not self.stanford_theme_enabled() and marketing_link('HONOR') and marketing_link('HONOR') != '#':
|
||||
<div class="field ${settings.REGISTRATION_EXTRA_FIELDS['honor_code']} checkbox" id="field-honorcode">
|
||||
<input id="honorcode-yes" type="checkbox" name="honor_code" value="true" />
|
||||
<%
|
||||
@@ -352,6 +354,7 @@
|
||||
link_start='<a href="{url}" class="new-vp" tabindex="-1">'.format(url=honor_code_path),
|
||||
link_end='</a>')}</label>
|
||||
</div>
|
||||
% endif
|
||||
% endif
|
||||
</li>
|
||||
</ol>
|
||||
|
||||
Reference in New Issue
Block a user