{# # Copyright (C) 2020 Cinc # # All rights reserved. # # License: 3-clause BSD #} # extends 'admin.html' # block admintitle ${_("Manage Projects")} # endblock admintitle # block head ${ super() } # endblock head # block adminpanel

${_("Manage Projects")} # if view != 'detail': (${len(all_projects)}) # endif

# if view == 'detail':
${jmacros.form_token_input()}
${_("Modify Project:")}

${_("Select this if you want to restrict this project and associated data to specific users or groups.")}
${_("Users can be associated with this project using the 'Permissions' panel.")} ${_('Permission for this project is "PROJECT_%s_MEMBER".') % project.id}

# if 'PROJECT_ADMIN' in perm:
# endif
# else: {# Main page #} # if not custom_field:
${_("Ticket custom field 'project' not configured. See installation instructions.")}
# endif # if 'PROJECT_ADMIN' in perm:
${jmacros.form_token_input()}
${_("Add Project:")}

${_("Select this if you want to restrict this project and associated data to specific users or groups.")}
${_("Users can be associated with this project using the 'Permissions' panel.")}

# endif
${jmacros.form_token_input()} # for prj in all_projects: # endfor
  ${_("ID")} ${_("Name")} ${_("Summary")} ${_("Completed")} ${_("Is restricted")}
# if 'PROJECT_ADMIN' in perm: # endif ${prj.id} ${prj.name} ${prj.summary} ${format_datetime(prj.closed if prj.closed else None) if prj.closed else ''} # if prj.restricted:
Yes

Use permission PROJECT_${prj.id}_MEMBER to assign users to the project.

# endif
# if 'PROJECT_ADMIN' in perm:
# endif
# endif
# endblock adminpanel