@@ -29,21 +29,9 @@ use PHPDraft\Out\Minifier;
29
29
<!-- Title -->
30
30
<span class="mdl-layout-title"><?= $ this ->base_data ['TITLE ' ]; ?> </span>
31
31
<div class="mdl-layout-spacer"></div>
32
- <div class="mdl-textfield mdl-js-textfield mdl-textfield--expandable
33
- mdl-textfield--floating-label mdl-textfield--align-right">
34
- <label class="mdl-button mdl-js-button mdl-button--icon"
35
- for="waterfall-exp">
36
- <i class="material-icons">search</i>
37
- </label>
38
- <div class="mdl-textfield__expandable-holder">
39
- <input class="mdl-textfield__input" type="text" name="sample"
40
- id="waterfall-exp">
41
- </div>
42
- </div>
43
32
</div>
44
33
</header>
45
34
<div class="mdl-layout__drawer">
46
- <span class="mdl-layout-title"><?= $ this ->base_data ['TITLE ' ]; ?> </span>
47
35
<nav class="mdl-navigation">
48
36
<a class="mdl-navigation__link" href="#"><b>Webservices</b></a>
49
37
<?php foreach ($ this ->categories as $ category ): ?>
@@ -100,7 +88,7 @@ use PHPDraft\Out\Minifier;
100
88
<div class="mdl-tabs mdl-js-tabs mdl-js-ripple-effect">
101
89
<div class="mdl-tabs__tab-bar">
102
90
<?php if (!empty ($ transition ->requests )): ?>
103
- <a href="#<?= $ transition ->get_href (); ?> -request-panel" class="mdl-tabs__tab is-active">Request</a>
91
+ <a href="#<?= $ transition ->get_href (); ?> -request-panel" class="mdl-tabs__tab is-active"><b> Request</b> </a>
104
92
<?php endif ;?>
105
93
<?php if (!empty ($ transition ->responses )): ?>
106
94
<?php foreach ($ transition ->responses as $ key => $ response ): ?>
@@ -174,35 +162,29 @@ use PHPDraft\Out\Minifier;
174
162
<?php endif ; ?>
175
163
<?php if ($ response ->structure !== []): ?>
176
164
<h5>Data Structure</h5>
177
- <div class="row">
178
- <?php foreach ($ response ->structure as $ value ): ?>
179
- <?= $ value ; ?>
180
- <?php endforeach ; ?>
181
- </div>
165
+ <?php foreach ($ response ->structure as $ value ): ?>
166
+ <?= $ value ; ?>
167
+ <?php endforeach ; ?>
182
168
<?php endif ; ?>
183
- <?php foreach ($ response ->content as $ key => $ value ): ?>
184
- <div>
185
- <?php $ href =
186
- $ transition ->get_href () . '- ' . $ response ->statuscode . '- ' . str_replace ([
187
- '/ ' ,
188
- '+ ' ,
189
- ], '- ' , $ key ); ?>
190
- <h5 class="response-body"
191
- data-toggle="collapse"
192
- data-target="#request-<?= $ href ?> ">
193
- <span class="glyphicon indicator glyphicon-menu-up"></span>
194
- <?= $ key ; ?>
195
-
196
- </h5>
197
- <pre class="collapse collapsed response-body"
198
- id="request-<?= $ href ?> "><?= $ value ; ?> </pre>
199
- </div>
200
- <?php endforeach ; ?>
201
- </div>
169
+ <div class="mdl-grid">
170
+ <?php foreach ($ response ->content as $ key => $ value ): ?>
171
+ <div class="mdl-cell mdl-cell--<?= 12 /count ($ response ->content )?> -col">
172
+ <?php $ href =
173
+ $ transition ->get_href () . '- ' . $ response ->statuscode . '- ' . str_replace ([
174
+ '/ ' ,
175
+ '+ ' ,
176
+ ], '- ' , $ key ); ?>
177
+ <h5 class="response-body"><?= $ key ; ?> </h5>
178
+ <pre class="response-body" id="request-<?= $ href ?> "><?= $ value ; ?> </pre>
179
+ </div>
180
+ <?php endforeach ; ?>
181
+ </div>
202
182
</div>
183
+
203
184
<?php endforeach ; ?>
204
185
<?php endif ; ?>
205
186
<?php endif ;?>
187
+ </div>
206
188
</div>
207
189
<div class="mdl-card__menu">
208
190
<button id="<?= $ transition ->get_href ();?> " class="mdl-button mdl-button--icon mdl-js-button mdl-js-ripple-effect">
0 commit comments