1. indifex
  2. transifex

Commits

Antonios E Garnelis  committed 614c6ac

Place team form in a more suitable(probably) place

  • Participants
  • Parent commits b63a1fc
  • Branches default

Comments (0)

Files changed (3)

File transifex/templates/teams/team_form.html

View file
  • Ignore whitespace
 <div>
   {% if not team_create %}
   <div class="separate-header notopmargin clearfix" style="margin-top:0;">
-    <h3  class="sh-label">{% trans "Edit language" %}</h3>
+    <h3  class="sh-label">{% trans "Edit language-team" %}</h3>
   </div>
   {% endif %}
 
     </fieldset>
 
     <p class="i16 infomsg">{% blocktrans %}Please note that notification will not be sent when coordinators or members are added or removed on this page.{% endblocktrans %}</p>
+    
+    {% if not team %}   
+    <p class="i16 infomsg">{% blocktrans %}The current language has no teams. You can delete the whole language by deleting all the translations of all resources.{% endblocktrans %}</p>
+    {% endif %}
 
     <p class="submit">
     	<input name="save_team" class="i16 submit buttonized" type="submit" value="{% trans "Save" %}"/>
   {% get_permission "project_perm.maintain" for request.user and project as "is_maintainer" %}
   {% if perms.teams.delete_team or is_maintainer %}
   <div class="separate-header clearfix">
-    <h3  class="sh-label">{% trans "Delete language" %}</h3>
+    <h3  class="sh-label">{% trans "Delete language-team" %}</h3>
   </div>
     
   <p style="margin-bottom:1em;">{% trans "Do you wish to delete the team? Translations will not be lost:" %}</p>
   <p><a class="i16 delete buttonized" href="{% url team_delete project.slug language.code %}">{% trans "Delete language" %}</a>
   </p>
+  <p class="i16 infomsg">{% blocktrans %}After deleting the team of this language its translations will remain. <br/>The language will be deleted only after deleting the translations of all resources.{% endblocktrans %}</p>
+
   {% endif %}
   {% endif %}
 </div>

File transifex/templates/teams/team_members.html

View file
  • Ignore whitespace
 
 <div class="obj_bigdetails">
 
-{% if perms.projects.change_team or is_coordinator %}
-<div class="clearfix">
-  <a class="i16 settings nude-button right" href="{% url team_update project.slug language.code %}">{% trans "Manage members" %}</a>
-</div>
-{% endif %}
-
 <div class="datalist clearfix">
 	{% with team.coordinators.all as coordinators %}
 	{% if coordinators %}

File transifex/templates/teams/team_menu.html

View file
  • Ignore whitespace
 <div id="teamcode-arrow"><div id="teamcode">{{ language.code }}</div><span></span></div>
 <div class="tab-wrapper grid_10">
   <ul  class="tabs clearfix">
-    <li class="{% if project_team_page %}selected{% endif %} alpha"><a href="{% url team_detail project.slug language.code %}">{% trans "Overview" %}</a></li>
+    <li class="{% if project_team_page %}selected{% endif %}"><a href="{% url team_detail project.slug language.code %}">{% trans "Overview" %}</a></li>
     {% if not project.anyone_submit %}
-    <li class="{% if project_team_members or project_team_form %}selected{% endif %} alpha"><a href="{% url team_members project.slug language.code %}">{% trans "Members" %}</a></li>
+    <li class="{% if project_team_members %}selected{% endif %}"><a href="{% url team_members project.slug language.code %}">{% trans "Members" %}</a></li>
     {% endif %}
     {% hook "team.html" menu %}
+    {% if perms.projects.change_team or is_coordinator %}
+    <li class="{% if project_team_form %}selected{% endif %}"><a href="{% url team_update project.slug language.code %}">{% trans "Edit language-team" %}</a></li>
+    {% endif %}
   </ul>
 </div>
 {% endif %}