File tree Expand file tree Collapse file tree 7 files changed +59
-52
lines changed Expand file tree Collapse file tree 7 files changed +59
-52
lines changed Original file line number Diff line number Diff line change 1
1
import 'bootstrap/dist/css/bootstrap.css'
2
2
import 'bootstrap-vue/dist/bootstrap-vue.css'
3
3
import './style/font-awesome-config.scss'
4
+ import './style/navigation.scss'
4
5
import Vue from 'vue'
5
6
import BootstrapVue from 'bootstrap-vue'
6
7
Original file line number Diff line number Diff line change 35
35
type =" button"
36
36
class =" btn btn-success col-md-12"
37
37
@click =" create"
38
- :disabled =" controller.selectedPage && controller.selectedPage.taint"
38
+ :disabled =" !controller.loaded || controller.selectedPage && controller.selectedPage.taint"
39
39
>新規</button >
40
40
</div >
41
41
<b-modal
Original file line number Diff line number Diff line change 1
1
import 'bootstrap/dist/css/bootstrap.css'
2
2
import 'bootstrap-vue/dist/bootstrap-vue.css'
3
3
import './style/font-awesome-config.scss'
4
+ import './style/navigation.scss'
4
5
import Vue from 'vue'
5
6
import BootstrapVue from 'bootstrap-vue'
6
7
Original file line number Diff line number Diff line change
1
+ #navigation {
2
+ min-height : 54px ;
3
+ }
Original file line number Diff line number Diff line change
1
+ < html >
2
+ < head >
3
+ < meta charset ="utf-8 ">
4
+ < title > {% block title %}{% endblock %}</ title >
5
+ </ head >
6
+ < body >
7
+ < nav class ="navbar navbar-dark bg-dark " id ="navigation ">
8
+ < a class ="navbar-brand " href ="{% url 'index' %} "> < i class ="fa fa-book "> ノート</ i > </ a >
9
+ {% if user.is_authenticated %}
10
+ < div class ="my-2 my-lg-0 ">
11
+ {% if user.is_superuser %}
12
+ < a class ="btn btn-outline-success my-2 my-sm-0 " href ="{% url 'admin:index' %} "> 管理画面</ a >
13
+ {% endif %}
14
+ < a class ="btn btn-outline-success my-2 my-sm-0 " href ="{% url 'logout' %} "> ログアウト</ a >
15
+ </ div >
16
+ {% endif %}
17
+ </ nav >
18
+ {% block content %}{% endblock %}
19
+ </ body >
20
+ </ html >
Original file line number Diff line number Diff line change
1
+ {% extends 'base.html' %}
1
2
{% load static %}
2
- < html >
3
- < head >
4
- < meta charset ="utf-8 ">
5
- < title > ノート</ title >
6
- </ head >
7
- < body >
8
- < nav class ="navbar navbar-dark bg-dark ">
9
- < a class ="navbar-brand " href ="{% url 'index' %} "> < i class ="fa fa-book "> ノート</ i > </ a >
10
- < div class ="my-2 my-lg-0 ">
11
- {% if user.is_superuser %}
12
- < a class ="btn btn-outline-success my-2 my-sm-0 " href ="{% url 'admin:index' %} "> 管理画面</ a >
13
- {% endif %}
14
- < a class ="btn btn-outline-success my-2 my-sm-0 " href ="{% url 'logout' %} "> ログアウト</ a >
15
- </ div >
16
- </ nav >
17
3
18
- < div class ="container-fluid ">
19
- < div class ="row ">
20
- {% verbatim %}
21
- < div id ="app ">
22
- < note :controller ="controller "> </ note >
23
- </ div >
24
- {% endverbatim %}
4
+ {% block title %}ノート{% endblock %}
5
+
6
+ {% block content %}
7
+ < div class ="container-fluid ">
8
+ < div class ="row ">
9
+ {% verbatim %}
10
+ < div id ="app ">
11
+ < note :controller ="controller "> </ note >
25
12
</ div >
13
+ {% endverbatim %}
26
14
</ div >
15
+ </ div >
27
16
< script src ="{% static 'client/index.js' %} "> </ script >
28
- </ body >
29
- </ html >
17
+ {% endblock %}
Original file line number Diff line number Diff line change
1
+ {% extends 'base.html' %}
1
2
{% load static %}
2
- < html >
3
- < head >
4
- < meta charset ="utf-8 ">
5
- < title > ログイン</ title >
6
- </ head >
7
- < body >
8
- < nav class ="navbar navbar-dark bg-dark ">
9
- < a class ="navbar-brand " href ="{% url 'index' %} "> ノート</ a >
10
- </ nav >
11
3
12
- < div class ="container ">
13
- < div class ="row ">
14
- < form action ="" method ="post " class ="col-12 mt-2 ">
15
- {% csrf_token %}
16
- < div class ="form-group ">
17
- < label for ="{{ form.username.id_for_label }} "> ユーザー名</ label >
18
- < input type ="text " name ="{{ form.username.html_name }} " id ="{{ form.username.id_for_label }} " class ="form-control " placeholder ="User name " required autofocus >
19
- </ div >
20
- < div class ="form-group ">
21
- < label for ="{{ form.password.id_for_label }} "> Password</ label >
22
- < input type ="password " name ="{{ form.password.html_name }} " id ="{{ form.password.id_for_label }} " class ="form-control " placeholder ="Password " required >
23
- </ div >
24
- < button type ="submit "> ログイン</ button >
25
- </ form >
26
- </ div >
4
+ {% block title %}ログイン{% endblock %}
5
+
6
+ {% block content %}
7
+ < div class ="container ">
8
+ < div class ="row ">
9
+ < form action ="" method ="post " class ="col-12 mt-2 ">
10
+ {% csrf_token %}
11
+ < div class ="form-group ">
12
+ < label for ="{{ form.username.id_for_label }} "> ユーザー名</ label >
13
+ < input type ="text " name ="{{ form.username.html_name }} " id ="{{ form.username.id_for_label }} " class ="form-control " placeholder ="User name " required autofocus >
14
+ </ div >
15
+ < div class ="form-group ">
16
+ < label for ="{{ form.password.id_for_label }} "> Password</ label >
17
+ < input type ="password " name ="{{ form.password.html_name }} " id ="{{ form.password.id_for_label }} " class ="form-control " placeholder ="Password " required >
18
+ </ div >
19
+ < button class ="btn btn-success col-12 " type ="submit "> ログイン</ button >
20
+ </ form >
27
21
</ div >
28
- < script src =" {% static 'client/common.js' %} " > </ script >
29
- </ body >
30
- </ html >
22
+ </ div >
23
+ < script src =" {% static 'client/common.js' %} " > </ script >
24
+ {% endblock %}
You can’t perform that action at this time.
0 commit comments