/
newModelComplete.html.php
32 lines (28 loc) · 1.25 KB
/
newModelComplete.html.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
<?php
Layout::extend('layouts/apps');
$title = 'New Application';
?>
<h1>Creating <strong><?php echo $modelName; ?></strong> Model...</h1>
<h3 class="bottom">Code Gen <?php if($modelWasSaved){ echo '<span class="added">Done</a>'; } else { echo '<span class="highlight">Almost Done</span>'; } ?></h3>
<?php if($modelWasSaved): ?>
<p>The <strong><?php echo $modelName; ?></strong> model was <span class="added">successfully saved</span> to <span class="added"><?php echo $path; ?></span>. If you'd like to take a peak at the generated code, expand the source below.</p>
<?php else:?>
<p><strong><?php echo $modelName; ?></strong> could not be saved. <?php echo $codeGenMessage; ?></p>
<p>To finish adding your model please <span class="highlight">save the code below</span> to the file <span class="highlight"><strong><?php echo $path; ?></strong></span>.</p>
<?php endif; ?>
<pre name="code" class="php<?php if($modelWasSaved) echo ':collapse'; ?>">
<?php echo str_replace('<','<',$modelCode); ?>
</pre>
<h3>Table Gen
<?php
if(!$tableGenAttempted) {
echo ' - Skipped';
} else {
if($tableWasCreated) {
echo '<span class="added">Done</a>';
} else {
echo '<span class="highlight">Almost Done</span>';
}
}
?></h3>
<h2><span class="highlight">Next Steps</span></h2>