File tree Expand file tree Collapse file tree 3 files changed +27
-2
lines changed
static/rest_framework_docs/js
templates/rest_framework_docs Expand file tree Collapse file tree 3 files changed +27
-2
lines changed Original file line number Diff line number Diff line change 1+ $ ( document ) . ready ( function ( ) {
2+
3+
4+
5+ } ) ;
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ <h3>Document Web APIs made with <a href="http://www.django-rest-framework.org/"
7777
7878 <!-- jQuery (necessary for Bootstrap's JavaScript plugins) -->
7979 < script src ="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js "> </ script >
80-
8180 < script src ="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.6/js/bootstrap.min.js " integrity ="sha256-KXn5puMvxCw+dAYznun+drMdG1IFl3agK0p/pqT9KAo= sha512-2e8qq0ETcfWRI4HJBzQiA3UoyFk6tbNyG+qSaIBZLyW9Xf3sWZHN/lxe9fTh1U45DpPf07yj94KsUHHWe4Yk1A== " crossorigin ="anonymous "> </ script >
81+ < script type ="text/javascript " src ="{% static "rest_framework_docs /js/index.js" %}"> </ script >
8282 </ body >
8383</ html >
Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ <h4 class="panel-title title">
4141 {% for method in endpoint.allowed_methods %}
4242 < li class ="method {{ method|lower }} "> {{ method }}</ li >
4343 {% endfor %}
44- < li class ="method plug "> < i class ="fa fa-plug "> </ i > </ li >
44+ < li class ="method plug " data-toggle =" modal " data-target =" #myModal " > < i class ="fa fa-plug "> </ i > </ li >
4545 </ ul >
4646 </ div >
4747 </ div >
@@ -81,4 +81,24 @@ <h2 class="text-center">There are currently no api endpoints to document.</h2>
8181 < h2 class ="text-center "> No endpoints found for {{ query }}.</ h2 >
8282 {% endif %}
8383
84+ <!-- Modal -->
85+ <!-- Modal -->
86+ < div class ="modal fade " id ="myModal " tabindex ="-1 " role ="dialog " aria-labelledby ="myModalLabel ">
87+ < div class ="modal-dialog " role ="document ">
88+ < div class ="modal-content ">
89+ < div class ="modal-header ">
90+ < button type ="button " class ="close " data-dismiss ="modal " aria-label ="Close "> < span aria-hidden ="true "> ×</ span > </ button >
91+ < h4 class ="modal-title " id ="myModalLabel "> Modal title</ h4 >
92+ </ div >
93+ < div class ="modal-body ">
94+ ...
95+ </ div >
96+ < div class ="modal-footer ">
97+ < button type ="button " class ="btn btn-default " data-dismiss ="modal "> Close</ button >
98+ < button type ="button " class ="btn btn-primary "> Save changes</ button >
99+ </ div >
100+ </ div >
101+ </ div >
102+ </ div >
103+
84104{% endblock %}
You can’t perform that action at this time.
0 commit comments