Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
gargantext
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
humanities
gargantext
Commits
e3f9e1b7
Commit
e3f9e1b7
authored
Oct 23, 2014
by
Administrator
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
[FEATURE] Templates. Form in popover to add project. OK
parent
ab62bc50
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
10 deletions
+20
-10
menu.html
templates/menu.html
+9
-1
projects.html
templates/projects.html
+11
-9
No files found.
templates/menu.html
View file @
e3f9e1b7
...
...
@@ -75,7 +75,15 @@ $(function() {
</script>
<script
src=
"{% static "
js
/
bootstrap
.
min
.
js
"
%}"
></script>
<script>
$
(
function
()
{
$
(
"[data-toggle='popover']"
).
popover
({
html
:
true
});});
</script>
<script>
$
(
function
()
{
$
(
"[data-toggle='popover']"
).
popover
({
html
:
true
,
title
:
function
()
{
return
$
(
"#popover-head"
).
html
();
},
content
:
function
()
{
return
$
(
"#popover-content"
).
html
();
}
});});
</script>
</body>
</html>
...
...
templates/projects.html
View file @
e3f9e1b7
...
...
@@ -19,16 +19,18 @@
<p>
Template showing my working space
</p>
</div>
<div
class=
"col-md-4"
></div>
<div
class=
"col-md-4"
></div>
<div
class=
"col-md-4"
></div>
<div
class=
"col-md-4"
>
<form
enctype=
"multipart/form-data"
action=
"/projects/"
method=
"post"
>
{% csrf_token %}
{{ form.non_field_errors }}
{{ form.as_p}}
<input
type=
"submit"
value=
"Add project"
/>
</form>
</div>
<button
type=
"button"
class=
"btn btn-primary btn-lg"
data-container=
"body"
data-toggle=
"popover"
data-placement=
"bottom"
>
Add project
</button>
<div
id=
"popover-content"
class=
"hide"
>
<form
enctype=
'multipart/form-data'
action=
'/projects/'
method=
'post'
>
{% csrf_token %}{{ form.non_field_errors }}{{ form.as_p}}
<input
type=
'submit'
value=
'Add project'
/></form>
">
</div>
</div>
</div>
</div>
</div>
...
...
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