|
16 | 16 | <a href="#" class="btn btn-primary" onclick="Install.submitform();" title="<?php echo JText::_('JCHECK_AGAIN'); ?>"><span class="icon-refresh icon-white"></span> <?php echo JText::_('JCHECK_AGAIN'); ?></a> |
17 | 17 | </div> |
18 | 18 | </div> |
19 | | - <div class="form-group"> |
| 19 | +<!-- <div class="form-group row"> |
20 | 20 | <label for="jform_language" class="control-label"><?php echo JText::_('INSTL_SELECT_LANGUAGE_TITLE'); ?></label> |
21 | 21 | <?php echo $this->form->getInput('language'); ?> |
22 | 22 | </div> |
23 | 23 | <input type="hidden" name="view" value="preinstall"> |
24 | 24 | <input type="hidden" name="task" value="setlanguage"> |
25 | | - <?php echo JHtml::_('form.token'); ?> |
| 25 | + <?php echo JHtml::_('form.token'); ?> --> |
26 | 26 | </form> |
27 | 27 | <form action="index.php" method="post" id="adminForm"> |
28 | 28 | <div class="row"> |
29 | | - <div class="col-md-12"> |
| 29 | + <div class="col-md-12 mb-4"> |
30 | 30 | <h3><?php echo JText::_('INSTL_PRECHECK_TITLE'); ?></h3> |
31 | 31 | <hr> |
32 | 32 | <p class="install-text"> |
33 | 33 | <?php echo JText::_('INSTL_PRECHECK_DESC'); ?> |
34 | | - </p> |
35 | | - <table class="table table-striped table-sm"> |
36 | | - <tbody> |
| 34 | + </p> |
| 35 | + <div class="row"> |
| 36 | + <div class="col-md-8 offset-md-2"> |
37 | 37 | <?php foreach ($this->options as $option) : ?> |
38 | 38 | <?php if ($option->state === 'JNO' || $option->state === false) : ?> |
39 | | - <tr> |
40 | | - <td class="item"> |
41 | | - <?php echo $option->label; ?> |
42 | | - </td> |
43 | | - <td> |
44 | | - <span class="badge badge-<?php echo ($option->state) ? 'success' : 'important'; ?>"> |
45 | | - <?php echo JText::_($option->state ? 'JYES' : 'JNO'); ?> |
46 | | - <?php if ($option->notice) : ?> |
47 | | - <span class="icon-info-sign icon-white hasTooltip" title="<?php echo $option->notice; ?>"></span> |
48 | | - <?php endif;?> |
49 | | - </span> |
50 | | - </td> |
51 | | - </tr> |
52 | | - <?php if ($option->state === false && preg_match('$configuration.php$', $option->label)) : ?> |
53 | | - <tr> |
54 | | - <form action="index.php" method="post" id="adminForm" class="form-validate"> |
55 | | - <h3><?php echo JText::_('INSTL_FTP'); ?></h3> |
56 | | - <hr> |
57 | | - <div class="form-group"> |
58 | | - <?php echo $this->form->getLabel('ftp_enable'); ?> |
59 | | - <?php echo $this->form->getInput('ftp_enable'); ?> |
60 | | - </div> |
61 | | - <div class="form-group"> |
62 | | - <?php echo $this->form->getLabel('ftp_user'); ?> |
63 | | - <?php echo $this->form->getInput('ftp_user'); ?> |
64 | | - <p class="form-text text-muted small"><?php echo JText::_('INSTL_FTP_USER_DESC'); ?></p> |
65 | | - </div> |
66 | | - <div class="form-group"> |
67 | | - <?php echo $this->form->getLabel('ftp_pass'); ?> |
68 | | - <?php echo $this->form->getInput('ftp_pass'); ?> |
69 | | - <p class="form-text text-muted small"><?php echo JText::_('INSTL_FTP_PASSWORD_DESC'); ?></p> |
70 | | - </div> |
71 | | - <div class="form-group"> |
72 | | - <button id="verifybutton" class="btn btn-success" onclick="Install.verifyFtpSettings(this);"><span class="icon-ok icon-white"></span> <?php echo JText::_('INSTL_VERIFY_FTP_SETTINGS'); ?></button> |
73 | | - </div> |
74 | | - <div class="form-group"> |
75 | | - <?php echo $this->form->getLabel('ftp_host'); ?> |
76 | | - <div class="input-append"> |
77 | | - <?php echo $this->form->getInput('ftp_host'); ?><button id="findbutton" class="btn btn-secondary" onclick="Install.detectFtpRoot(this);"><span class="icon-folder-open"></span> <?php echo JText::_('INSTL_AUTOFIND_FTP_PATH'); ?></button> |
78 | | - </div> |
79 | | - </div> |
80 | | - <div class="form-group"> |
81 | | - <?php echo $this->form->getLabel('ftp_port'); ?> |
82 | | - <?php echo $this->form->getInput('ftp_port'); ?> |
83 | | - </div> |
84 | | - <div class="form-group"> |
85 | | - <?php echo $this->form->getLabel('ftp_save'); ?> |
86 | | - <?php echo $this->form->getInput('ftp_save'); ?> |
87 | | - </div> |
88 | | - <div class="btn-toolbar justify-content-end"> |
89 | | - <div class="btn-group"> |
90 | | - <a class="btn btn-secondary" href="#" onclick="return Install.goToPage('database');" rel="prev" title="<?php echo JText::_('JPREVIOUS'); ?>"><span class="fa fa-arrow-left"></span> <?php echo JText::_('JPREVIOUS'); ?></a> |
91 | | - <a class="btn btn-primary" href="#" onclick="Install.submitform();" rel="next" title="<?php echo JText::_('JNEXT'); ?>"><span class="fa fa-arrow-right icon-white"></span> <?php echo JText::_('JNEXT'); ?></a> |
92 | | - </div> |
93 | | - </div> |
94 | | - <input type="hidden" name="task" value="ftp"> |
95 | | - <input type="hidden" name="format" value="json"> |
96 | | - <?php echo JHtml::_('form.token'); ?> |
97 | | - </form> |
98 | | - </tr> |
99 | | - <?php endif; ?> |
| 39 | + <div class="alert preinstall-alert"> |
| 40 | + <strong><?php echo $option->label; ?></strong> |
| 41 | + <p class="form-text text-muted small"><?php echo $option->notice; ?></p> |
| 42 | + </div> |
100 | 43 | <?php endif; ?> |
101 | 44 | <?php endforeach; ?> |
102 | | - </tbody> |
103 | | - <tfoot> |
104 | | - <tr> |
105 | | - <td colspan="2"></td> |
106 | | - </tr> |
107 | | - </tfoot> |
108 | | - </table> |
| 45 | + </div> |
| 46 | + </div> |
| 47 | + <?php if ($option->state === false && preg_match('$configuration.php$', $option->label)) : ?> |
| 48 | + <div id="ftpOptions" class="ftp-options mb-4"> |
| 49 | + <form action="index.php" method="post" id="adminForm" class="form-validate"> |
| 50 | +<!-- <h3><?php echo JText::_('INSTL_FTP'); ?></h3> |
| 51 | + <hr> --> |
| 52 | + <div class="form-group row"> |
| 53 | + <div class="col-md-8 offset-md-2"> |
| 54 | + <?php echo $this->form->getLabel('ftp_user'); ?> |
| 55 | + <?php echo $this->form->getInput('ftp_user'); ?> |
| 56 | + <p class="form-text text-muted small"><?php echo JText::_('INSTL_FTP_USER_DESC'); ?></p> |
| 57 | + </div> |
| 58 | + </div> |
| 59 | + <div class="form-group row"> |
| 60 | + <div class="col-md-8 offset-md-2"> |
| 61 | + <?php echo $this->form->getLabel('ftp_pass'); ?> |
| 62 | + <?php echo $this->form->getInput('ftp_pass'); ?> |
| 63 | + <p class="form-text text-muted small"><?php echo JText::_('INSTL_FTP_PASSWORD_DESC'); ?></p> |
| 64 | + </div> |
| 65 | + </div> |
| 66 | + <div class="form-group row mb-4"> |
| 67 | + <div class="col-md-8 offset-md-2"> |
| 68 | + <?php echo $this->form->getLabel('ftp_host'); ?> |
| 69 | + <div class="input-append d-flex"> |
| 70 | + <?php echo $this->form->getInput('ftp_host'); ?><button id="findbutton" class="btn btn-secondary ml-2" onclick="Install.detectFtpRoot(this);"><span class="icon-folder-open"></span> <?php echo JText::_('INSTL_AUTOFIND_FTP_PATH'); ?></button> |
| 71 | + </div> |
| 72 | + </div> |
| 73 | + </div> |
| 74 | + <div class="form-group row"> |
| 75 | + <div class="col-md-8 offset-md-2"> |
| 76 | + <?php echo $this->form->getLabel('ftp_port'); ?> |
| 77 | + <?php echo $this->form->getInput('ftp_port'); ?> |
| 78 | + </div> |
| 79 | + </div> |
| 80 | + <div class="form-group row"> |
| 81 | + <div class="col-md-8 offset-md-2 justify-content-end d-flex"> |
| 82 | + <button id="verifybutton" class="btn btn-success" onclick="Install.verifyFtpSettings(this);"><span class="icon-ok icon-white"></span> <?php echo JText::_('INSTL_VERIFY_FTP_SETTINGS'); ?></button> |
| 83 | + </div> |
| 84 | + </div> |
| 85 | + <input type="hidden" name="task" value="ftp"> |
| 86 | + <input type="hidden" name="format" value="json"> |
| 87 | + <?php echo JHtml::_('form.token'); ?> |
| 88 | + </form> |
| 89 | + </div> |
| 90 | + <?php endif; ?> |
109 | 91 | </div> |
110 | 92 | <div class="col-md-12"> |
111 | 93 | <h3><?php echo JText::_('INSTL_PRECHECK_RECOMMENDED_SETTINGS_TITLE'); ?></h3> |
|
0 commit comments