1 {% extends
"base.html" %}
7 <link rel=
"stylesheet" href=
"{% static "bower_components/admin-lte/plugins/select2/select2.css
" %}">
9 <style type=
"text/css">
11 input:required:invalid, input:focus:invalid {
13 background-position: right top;
14 background-repeat: no-repeat;
16 input:required:valid {
18 background-position: right top;
19 background-repeat: no-repeat;
25 {% block left_sidebar %}
26 {% include 'left_sidebar_base.html' %}
29 {% block breadcrumb_body %}
31 <li><a href='{% url
"projects:new_project" %}'
>New Project
</a></li>
34 {% block content_body %}
37 <div class=
"col-md-12">
38 <!-- general form elements -->
39 <div class=
"box box-primary">
40 <div class=
"box-header with-border">
41 <h3 class=
"box-title">New Project
</h3>
45 <form role=
"form" method=
"post" enctype=
"multipart/form-data">
47 <div class=
"box-body">
49 <div class=
"form-group col-xs-3">
50 <p for=
"typeButtonsSelect">Project Type
</p>
51 <input type=
"hidden" class=
"form-control input-sm" name=
"type" id=
"projectType"
53 <select id=
"select_type" class=
"js-example-basic-single form-control" style=
"width: 75%">
58 <div class=
"form-group col-xs-4">
59 <p for=
"projectName">Project Name
</p>
60 <input type=
"text" class=
"form-control input-sm" name=
"name" id=
"projectName"
61 placeholder=
"Enter Project name" required
>
63 <div class=
"form-group col-xs-4">
64 <p for=
"projectInfo">Info
</p>
65 <input type=
"text" class=
"form-control input-sm" name=
"info" id=
"projectInfo"
66 placeholder=
"Short Description">
72 <div id=
"startGroup" class=
"form-group col-xs-5" style=
"display: none;">
75 <div id=
"startButtonsSelect" class=
"btn-group" data-toggle=
"buttons">
76 <label id=
"s-scratch" class=
"btn btn-primary active">
77 <input id=
"scratch" type=
"radio" name=
"startfrom" autocomplete=
"off" value=
"scratch">
80 <label id=
"s-example" class=
"btn btn-primary">
81 <input type=
"radio" name=
"startfrom" autocomplete=
"off" value=
"example">
84 <label id=
"s-files" class=
"btn btn-primary">
85 <input type=
"radio" name=
"startfrom" autocomplete=
"off" value=
"files">
93 <div id=
"typeStartContainer" class=
"row">
94 <div class=
"form-group col-xs-8">
95 {% autoescape off %}{{ type_container_template }}{% endautoescape %}
101 <div class=
"box-footer">
102 <button id=
"createButton" type=
"submit" class=
"btn btn-primary" disabled
>Create
</button>
112 {% block resource_block %}
115 <script src=
"{% static "bower_components/admin-lte/plugins/select2/select2.full.min.js
" %}"></script>
117 <script src=
"{% static "src/projecthandler/new_project.js
" %}"></script>
119 {% if data_type_selector %}
120 var data_type_selector ={{ data_type_selector |safe }};
123 {% if type_example_files %}
124 var type_example_files = {{type_example_files | safe}};