CRM-15821 PCP Improvements
[civicrm-core.git] / install / template.html
index d9ace3f94def6627d4528d84efc7b370073b5e30..6202e9ff296d60f8dccc370f7e0f84740bb89f9f 100644 (file)
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
 <head>
 <meta http-equiv="Content-type" content="text/html; charset=utf-8" />
-<title><?php echo ts('CiviCRM Installer'); ?></title>
+<title>CiviCRM Installer</title>
 <link rel="stylesheet" type="text/css" href=<?php echo $installURLPath . "template.css"?> />
 </head>
 
 <body>
-
 <div id="All">
-  <div style="float: right"><strong>Version <?php echo "{$civicrm_version['version']} {$civicrm_version['cms']}" ?></strong><br/>
+    <div style="float: right"><b>Version <?php echo "{$civicrm_version['version']} {$civicrm_version['cms']}" ?></b></br>
     <span><img src=<?php echo $installURLPath . "block_small.png"?> /></span>
-  </div>
-
-<h1><?php echo ts("CiviCRM Installer"); ?></h1>
-<p><?php echo ts("Thanks for choosing CiviCRM! Please follow the instructions below to install CiviCRM."); ?></p>
-
+    </div>
+<h1>CiviCRM Installer</h1>
+<div>Thanks for choosing to use CiviCRM!  Please follow the instructions below to get CiviCRM installed.</div>
+</br><br>
 <form name="civicrm_form" method="post" action="<?php echo str_replace( '%7E', '~', $_SERVER['REQUEST_URI']); ?>">
-
 <?php if(isset($hasErrorOtherThanDatabase)) { ?>
-  <p class="error"><?php echo ts('We are not able to install the software. Please <a href="#requirements">see below</a> for details.'); ?></p>
+<p class="error">We are not able to install the software.  Please <a style="color: #CCF" href="#requirements">see below</a> for details.</p>
 <?php } else { ?>
-  <?php if($req->hasWarnings()) { ?>
-    <p class="warning"><?php echo ts('There are some issues that we recommend you look at before installing, however, you are still able to install the software.  Please see below for details.'); ?></p>
-  <?php } else if(!$dbReq->hasErrors()) { ?>
-    <p class="good"><?php echo ts("You're ready to install!"); ?></p>
-  <?php } ?>
+<?php if($req->hasWarnings()) { ?>
+<p class="warning">There are some issues that we recommend you look at before installing, however, you are still able to install the software.  Please see below for details.</p>
 
-  <p>
-  <input id="install_button" type="submit" name="go" value="<?php echo ts('Check Requirements and Install CiviCRM', array('escape' => 'js')); ?>" onclick="document.getElementById('saving_top').style.display = ''; this.value = '<?php echo ts('Installing CiviCRM...', array('escape' => 'js')); ?>'" />
+<?php } else if(!$dbReq->hasErrors()) { ?>
+<p class="good">You're ready to install! &nbsp;&nbsp;
+</p>
+
+<?php } ?>
+
+<p>
+  <input id="install_button" type="submit" name="go" value="Check Requirements and Install CiviCRM" onclick="document.getElementById('saving_top').style.display = ''; this.value = 'Installing CiviCRM...'" />
 
   <span id="saving_top" style="display: none">
   &nbsp;
     <img src=<?php echo $installURLPath . "network-save.gif"?> />
-  <?php echo ts('(this will take a few minutes)'); ?>
+  (this will take a few minutes)
   </span>
-  </p>
+</p>
 <?php } ?>
 
-<h4><?php echo ts('Language and Region Settings'); ?></h4>
-
-<p><?php echo ts('CiviCRM has been translated to many languages, thanks to its community of translators. By selecting another language, the installer may be available in that language. The initial configuration of the basic data will also be set to that language (ex: individual prefixes, suffixes, activity types, etc.). <a href="%1">Learn more about using CiviCRM in other languages.</a>', array(1 => 'http://wiki.civicrm.org/confluence/pages/viewpage.action?pageId=88408149')); ?></p>
 
-<script>
-  function civicrmInstallerSetLanguage(language) {
-     var location = window.location.toString();
-
-     if (location.match(/seedLanguage=.._../)) {
-       location = location.replace(/seedLanguage=.._../, 'seedLanguage=' + language);
-       window.location = location;
-     }
-     else {
-       window.location += '?seedLanguage=' + language;
-     }
-  }
-</script>
-
-<p style="margin-left: 2em" id="locale">
-<label for="seedLanguage"><span><?php echo ts('Language of basic data:'); ?></span></label>
-<select id="seedLanguage" name="seedLanguage" onchange="civicrmInstallerSetLanguage(this.value);">
-  <?php
-    foreach ($langs as $locale => $language) {
-      $selected = ($locale == $seedLanguage) ? 'selected="selected"' : '';
-      echo "<option value='$locale' $selected>$language</option>";
-    }
-  ?>
-</select>
-<noscript>
-  <input type="submit" name="setlanguage" value="<?php echo ts('Change language', array('escape' => 'js')); ?>" />
-</noscript>
-<span class="testResults">
-  <?php
-    if (count($langs) < 2) {
-      echo "(download the civicrm-{$civicrm_version['version']}-l10n.tar.gz file and unzip into CiviCRM’s directory to add languages here)";
-    }
-  ?>
-</span>
-</p>
-
-<h4><?php echo ts('CiviCRM Database Settings'); ?></h4>
 <input type="hidden" name="database" value="MySQLDatabase" />
 
+<h2>Database Version and Connection Settings</h2>
 <p>
-<?php echo ts('CiviCRM stores its content in a MySQL database. Please provide the username and password to connect to the server here.  If this account has permission to create databases, then we will create the database for you; otherwise, you must give the name of a database that already exists.'); ?>
+CiviCRM stores its content in a MySQL database.  Please provide the username
+and password to connect to the server here.  If this account has permission to create databases, then we will
+create the database for you; otherwise, you must give the name of a database that already exists.
 </p>
 
 <?php if($dbReq->hasErrors()) { ?>
-  <p class="error"><?php echo ts("Your database settings don't appear to be correct. Please check the <a href='%1'>Database Details</a> below for specific errors.", array(1 => '#dbDetails')); ?></p>
+<p class="error">Your database settings don't appear to be correct. Please check the <strong><a href="#dbDetails" style="color: white;">Database Details</a></strong> below for specific errors.</p>
 <?php } else { ?>
-  <p class="good"><?php echo ts("Database version and connection settings have been verified and look correct!"); ?></p>
+<p class="good">Database version and connection settings have been verified and look correct!</p>
 <?php } ?>
 
-<p style="margin-left: 2em" id="mysql_credentials" >
-  <label for="mysql_server"> <span><?php echo ts('MySQL server:'); ?></span> <input id="mysql_server" type="text" name="mysql[server]" value="<?php echo $databaseConfig['server'] ?>" /></label> <br />
-  <label for="mysql_username"> <span><?php echo ts('MySQL username:'); ?></span> <input id="mysql_username" type="text" name="mysql[username]" value="<?php echo $databaseConfig['username'] ?>"  /></label> <br />
-  <label for="mysql_password"> <span><?php echo ts('MySQL password:'); ?></span> <input id="mysql_password" type="password" name="mysql[password]" value="<?php echo $databaseConfig['password'] ?>" /></label> <br />
-  <label for="mysql_database"><span><?php echo ts('MySQL database:'); ?></span> <input id="mysql_database" type="text" name="mysql[database]" value="<?php echo $databaseConfig['database'] ?>" /></label> <br />
+<h4>CiviCRM Database Settings</h4>
+<p style="margin-left: 2em" id="mysql_credentials" > <!--style="display: none"-->
+  <label for="mysql_server"> <span>MySQL server:</span> <input id="mysql_server" type="text" name="mysql[server]" value="<?php echo $databaseConfig['server'] ?>" /></label> <br />
+  <label for="mysql_username"> <span>MySQL username:</span> <input id="mysql_username" type="text" name="mysql[username]" value="<?php echo $databaseConfig['username'] ?>"  /></label> <br />
+  <label for="mysql_password"> <span>MySQL password:</span> <input id="mysql_password" type="password" name="mysql[password]" value="<?php echo $databaseConfig['password'] ?>" /></label> <br />
+  <label for="mysql_database"><span>MySQL database:</span> <input id="mysql_database" type="text" name="mysql[database]" value="<?php echo $databaseConfig['database'] ?>" /></label> <br />
 </p>
 
 <?php if ($installType == 'drupal') { ?>
-<h4><?php echo ts('Drupal Database Settings'); ?></h4>
+<h4>Drupal Database Settings</h4>
 <p style="margin-left: 2em" id="drupal_credentials" > <!--style="display: none"-->
-  <label for="drupal_server"> <span><?php echo ts('MySQL server:'); ?></span> <input id="drupal_server" type="text" name="drupal[server]" value="<?php echo $drupalConfig['server'] ?>" /></label> <br />
-  <label for="drupal_username"> <span><?php echo ts('MySQL username:'); ?></span> <input id="drupal_username" type="text" name="drupal[username]" value="<?php echo $drupalConfig['username'] ?>"  /></label> <br />
-  <label for="drupal_password"> <span><?php echo ts('MySQL password:'); ?></span> <input id="drupal_password" type="password" name="drupal[password]" value="<?php echo $drupalConfig['password'] ?>" /></label> <br />
-  <label for="drupal_database"><span><?php echo ts('MySQL database:'); ?></span> <input id="drupal_database" type="text" name="drupal[database]" value="<?php echo $drupalConfig['database'] ?>" /></label> <br />
+  <label for="drupal_server"> <span>MySQL server:</span> <input id="drupal_server" type="text" name="drupal[server]" value="<?php echo $drupalConfig['server'] ?>" /></label> <br />
+  <label for="drupal_username"> <span>MySQL username:</span> <input id="drupal_username" type="text" name="drupal[username]" value="<?php echo $drupalConfig['username'] ?>"  /></label> <br />
+  <label for="drupal_password"> <span>MySQL password:</span> <input id="drupal_password" type="password" name="drupal[password]" value="<?php echo $drupalConfig['password'] ?>" /></label> <br />
+  <label for="drupal_database"><span>MySQL database:</span> <input id="drupal_database" type="text" name="drupal[database]" value="<?php echo $drupalConfig['database'] ?>" /></label> <br />
 </p>
 <?php } ?>
 
 
-<h4><?php echo ts('Other Settings'); ?></h4>
-
-<p>
+<h4>Other Settings</h4>
+<p style="margin-left: 2em" id="misc_credentials" >
+<!--style="display: none"-->
+<label for="seedLanguage"><span>Language of basic data:</span></label><select id="seedLanguage" name="seedLanguage">
+  <?php
+    foreach ($langs as $locale => $language) {
+      $selected = ($locale == $seedLanguage) ? 'selected="selected"' : '';
+      echo "<option value='$locale' $selected>$language</option>";
+    }
+  ?>
+</select>
+<span class="testResults">
+  <?php
+    if (count($langs) < 2) {
+      echo "(download the civicrm-{$civicrm_version['version']}-l10n.tar.gz file and unzip into CiviCRM’s directory to add languages here)";
+    }
+  ?>
+</span><br />
     <label for="loadGenerated"><span>Load sample data:</span><input id="loadGenerated" type="checkbox" name="loadGenerated" value=1 <?php if ( $loadGenerated == 1 ) { echo "checked='checked'"; } ?> /></label> <br />
     <span class="testResults">Check this box to pre-populate CiviCRM with sample English contact records, online contribution pages, profile forms, etc. These examples can help you learn about CiviCRM features.</span><br />
 </p>