Commit 75d7208e authored by Anthony Geourjon's avatar Anthony Geourjon
Browse files

Student can add simple project

parent 04e163fb
......@@ -8,30 +8,38 @@
</div>
<div ng-if="_userGroups[_getSession().group]=='STUDENT'" ng-include
src="__root+'components/projects/add/addAcademicStudent.html'" ng-init="init();">
</div>
<div ng-if="_userGroups[_getSession().group]=='TUTOR' && _userOrganization[_getSession().group]=='ACADEMIC'"
ng-include src="__root+'components/projects/add/addAcademicTutor.html'" ng-init="init();">
<div ng-if="_userGroups[_getSession().group]=='ADMIN' && _userOrganization[_getSession().group]=='ACADEMIC'"
ng-include src="'components/projects/add/addAcademicAdmin.html'" ng-init="init();">
<div ng-if="_userGroups[_getSession().group]=='TUTOR' && _userOrganization[_getSession().group]=='ACADEMIC'"
ng-include src="__root+'components/projects/add/addAcademicTutor.html'" ng-init="init();">
</div>
<div ng-if="_userGroups[_getSession().group]=='ADMIN' && _userOrganization[_getSession().group]=='ACADEMIC'"
ng-include src="'components/projects/add/addAcademicAdmin.html'" ng-init="init();">
<div ng-if="_userGroups[_getSession().group]=='STUDENT'" ng-include
src="__root+'components/projects/add/addAcademicTutor.html'" ng-init="init();">
</div>
</div>
</div>
<section ng-if="step==maxStep">
<div class='alert alert-success' ng-if='newProject.status'>
<p style="text-align: left" ng-bind-html="_labels.newProjectSuccess"></p>
</div>
<div class='alert alert-info pointerOn'
ng-if="_getSession().group!='21' && newProject.status && newProject.topic==3"
ui-sref="project.matching({projectName:newProject.details.projectName})">
<p style="text-align: left" ng-bind-html="_labels.newProjectSuggest"></p>
</div>
</section>
</div>
<section ng-if="step==maxStep">
<div class='alert alert-success' ng-if='newProject.status'>
<p style="text-align: left" ng-bind-html="_labels.newProjectSuccess"></p>
</div>
<div class='alert alert-info pointerOn'
ng-if="_getSession().group!='21' && newProject.status && newProject.topic==3"
ui-sref="project.matching({projectName:newProject.details.projectName})">
<p style="text-align: left" ng-bind-html="_labels.newProjectSuggest"></p>
</div>
</section>
</div>
</div>
</div>
<div>
<div class="info clearfix ajouters inlineChildren " style="width:800px; margin:auto;text-align:center;"
ng-mouseleave="lastHover=''">
<section class="member pointerOn" ng-class="{'active':newProject.template=='blank'}"
ng-click='newProject.template="blank"' ng-mouseover="lastHover='blank'"
style="width:200px;height:120px">
<span class="fa fa-3x fa-file-o" style="width: auto;"></span>
<p style="margin-top:10px;">{{::_labels.newBlankProject}}</p>
</section>
</div>
<div class="clearfix"></div>
<div style="height:80px; margin:10px;">
<p class="alert alert-info" ng-if="lastHover=='blank'">{{::_labels.newBlankProjectHint}}</p>
</div>
</div>
<div ng-if="newProject.template=='blank'">
<form name="newProjectForm" input-error ng-submit="addProject(newProject)">
<div class="col-md-6 colMd-NoPadding ">
<section>
<h4>({{::_labels.required}})</h4>
<div class="form-group has-error">
<label for="projectName">{{::_labels.projectName}}</label><span class="required-item"> *</span>
<div><input required id="projectName" ng-model="newProject.name" type="text"></div>
</div>
<div class="ajouters ">
<label>{{::_labels.inviteMembers}}</label>
<p>{{::_labels.inviteMembersDescription}}</p>
<div ng-controller="UsersSearchCtrl" ng-include src="__root+'components/users/search.html'"></div>
<ul class="clearfix">
<li class="member" ng-repeat="member in newProject.members" ng-class="{'active':member.new}"
ng-click="removeMember(member)" title="{{::_labels.confirmDeleteArticleBtn}}">
<img ng-src="{{_formatUser(member).avatar}}" alt="">
<div class="fa fa-times removeUserBtn"></div>
<p>{{_formatUser(member).shortName}}</p>
</li>
</ul>
</div>
<div class="form-group has-error">
<label style='margin-top: 10px;'>{{::_labels.newProjectSectors}} (MIN 1, MAX 3)</label><span
class="required-item"> *</span>
<div style=''>
<select required class="name" ng-model="inputSector" style='margin-top: 0px;'
ng-change="addSector(inputSector)">
<option ng-repeat="sector in listSectors">{{sector.label}}</option>
</select>
</div>
<p ng-if="themeError" style="color:red">Vous devez ajouter au moins un thème</p>
<div class='jt-editor' style='margin-left: 0;' ng-show='newProject.sectors.length'>
<span ng-repeat="sector in newProject.sectors"
style='padding: 5px; height: auto;color: inherit' class='jt-tag'>
{{sector.label}}<span class="remove-button" ng-click="removeSector(sector)"
title='{{::_labels.deleteMode}}' style='padding-left: 3px;'>×</span>
</span>
</div>
</div>
<div class="form-group has-error">
<div class='separator'></div>
<label>{{::_labels.projectDescription}}</label>
<textarea ng-model="newProject.description"></textarea>
</div>
<div class="form-group has-error">
<div class='separator'></div>
<label>{{::_labels.projectKeywords}}</label>
<small>({{::_labels.inputKeywords}})</small>
<js-tag js-tag-options="jsTagOptions"></js-tag>
</div>
</section>
</div>
<div class="col-md-12">
<button type="submit" style="float:right;" ng-click="">{{::_labels.addProjectBtn}}</button>
</div>
</form>
<div class="modal hide" id='noCourseModal' ng-include src="__root+'components/utils/modalPromptForm.html'"
ng-controller="ModalPromptCtr"></div>
</div>
......@@ -199,14 +199,14 @@
<span class="caret"></span>
</a>
<ul class="dropdown-menu" style='width: 200px;left:0 ;right: -50px;'>
<li ng-if='_getSession().session && _userGroups[_getFullGroup()]=="TUTOR"' >
<li>
<a href ui-sref="project.add" ng-click="_closeProject();" style='color:inherit'>
<span class="wazaIcon smallIcons leftNavIcons static">O</span>
<span>{{::_labels.addProject | uppercase}}</span>
</a>
</li>
<li ng-if='_getSession().session && _userGroups[_getFullGroup()]=="TUTOR"' role="separator" class="divider"></li>
<li role="separator" class="divider"></li>
<li ng-if="!project.isChild" ng-repeat="project in (_listProjects) | orderBy:'label' track by $index"
class="list-projects">
<a href ng-click="_setCurrentProjectMenu(project);_setProject(project.id,true)"
......
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