Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
itminedu
djnro
Commits
abac9703
Commit
abac9703
authored
Oct 22, 2012
by
Leonidas Poulopoulos
Browse files
Added warnings when user has no institution details defined
parent
8e13bb07
Changes
1
Hide whitespace changes
Inline
Side-by-side
templates/edumanage/welcome.html
View file @
abac9703
...
...
@@ -184,8 +184,9 @@ $.get("{% url get-service-points %}", function(data){
<a
href=
"{% url manage %}"
>
Home
</a>
</li>
<li
{%
block
instactive
%}{%
endblock
%}
>
<a
href=
"{% url institutions %}"
>
Institution
({{inst_num}})
</a>
<a
href=
"{% url institutions %}"
>
Institution
{% if not instdets %}
<font
style=
"color: red; font-weight: bold; font-size: 14px;"
>
(!)
</font>
{% endif %}
</a>
</li>
{% if instdets %}
<li
{%
block
servicesactive
%}{%
endblock
%}
>
<a
href=
"{% url services %}"
>
Services ({{services_num}})
</a>
</li>
...
...
@@ -198,6 +199,7 @@ $.get("{% url get-service-points %}", function(data){
<li
{%
block
contactsactive
%}{%
endblock
%}
>
<a
href=
"{% url contacts %}"
>
Contacts ({{contacts_num}})
</a>
</li>
{% endif %}
</ul>
</div>
<!--/.well -->
</div>
<!--/span-->
...
...
@@ -206,11 +208,11 @@ $.get("{% url get-service-points %}", function(data){
<!--/span-->
<div
class=
"span10"
>
{% block subcontent %}
<h4>
Home - Service Locations
</h4>
<hr>
{% if services %}
<div
id=
"map_canvas"
style=
"width:100%; height:450px;"
></div>
{% else %}
<p>
No services defined!
</p>
<div>
{% if instdets %}No services defined yet!
<a
href=
"{% url edit-services %}"
class=
"btn btn-primary"
>
Add new service
</a>
{% else %}Specify your institution details to proceed
<a
class=
"btn btn-small btn-primary"
href=
"{% url edit-institution institution.pk %}"
>
Edit
</a>
{% endif %}
</div>
{% endif %}
{% endblock %}
</div>
<!--/span-->
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment