Commit 61e02fab by Sarina Canelake

Hide Honor Code mentions if site does not have an Honor Code

parent 3a3ab762
...@@ -1582,7 +1582,7 @@ MKTG_URL_LINK_MAP = { ...@@ -1582,7 +1582,7 @@ MKTG_URL_LINK_MAP = {
'COURSES': 'courses', 'COURSES': 'courses',
'ROOT': 'root', 'ROOT': 'root',
'TOS': 'tos', 'TOS': 'tos',
'HONOR': 'honor', 'HONOR': 'honor', # If your site does not have an honor code, simply delete this line.
'PRIVACY': 'privacy', 'PRIVACY': 'privacy',
'PRESS': 'press', 'PRESS': 'press',
'BLOG': 'blog', 'BLOG': 'blog',
......
...@@ -339,6 +339,8 @@ ...@@ -339,6 +339,8 @@
% endif % endif
% if settings.REGISTRATION_EXTRA_FIELDS['honor_code'] != 'hidden': % 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"> <div class="field ${settings.REGISTRATION_EXTRA_FIELDS['honor_code']} checkbox" id="field-honorcode">
<input id="honorcode-yes" type="checkbox" name="honor_code" value="true" /> <input id="honorcode-yes" type="checkbox" name="honor_code" value="true" />
<% <%
...@@ -352,6 +354,7 @@ ...@@ -352,6 +354,7 @@
link_start='<a href="{url}" class="new-vp" tabindex="-1">'.format(url=honor_code_path), link_start='<a href="{url}" class="new-vp" tabindex="-1">'.format(url=honor_code_path),
link_end='</a>')}</label> link_end='</a>')}</label>
</div> </div>
% endif
% endif % endif
</li> </li>
</ol> </ol>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment