handling toggle parts visible tag: now rely on local storage, so avoid
[plewww.git] / planetlab / slices / slice_add.php
index 704e0fe..59c0efc 100644 (file)
@@ -95,6 +95,11 @@ if ( $_POST['add-slice'] ) {
        } else {
          drupal_set_message("Successfully set the 'omf_control' tag on slice");
        }
+       if ($api->SetSliceVref($slice_id,'omf') != 'omf') {
+         drupal_set_error("Could not set the 'vref' tag on newly created slice...");
+       } else {
+         drupal_set_message("Successfully set the 'vref' tag on slice");
+       }
       }
 
       if ($person_ids) {
@@ -191,15 +196,13 @@ if ($multiple_sites) {
                  
 print <<< EOF
 <div class='create-slice-instantiations'>
-<p>You <span class='bold'>must</span> provide a short description, 
-as well as a link to a project website, before creating it.
-
-<br/> Please make sure to provide reasonable details on <span class='bold'>
-the kind of traffic</span>, and <span class='bold'>copyrights</span> if relevant. 
-Do <span class='bold'>not</span> provide bogus information; if a complaint is lodged against 
-your slice  and your PlanetLab Operations Center is unable to determine what the normal behavior 
-of your slice is, your slice may be deleted to resolve the complaint.</p>
-
+<p><span class='bold'>Important:</span> Please provide a short description, as well as a 
+link to a project website, before creating your slice.</p>
+<p>
+PlanetLab's security model requires that anyone who is concerned about a slice's activity be able to immediately learn about that slice. The details that you provide are your public explanation about why the slice behaves as it does. Be sure to describe the <span class='bold'>kind of traffic</span> that your slice generates, and how it handles material that is under <span class='bold'>copyright</span>, if relevant.
+</p><p>
+The PlanetLab Operations Centres regularly respond to concerns raised by third parties about site behaviour. Most incidents are resolved rapidly based upon the publicly posted slice details. However, when these details are not sufficiently clear or accurate, and we cannot immediately reach the slice owner, we must delete the slice.
+</p>
 <p><span class='bold'>NOTE</span>: All PlanetLab users are <span class='bold'>strongly</span>
  encouraged to join the PlanetLab 
 <a href='https://lists.planet-lab.org/mailman/listinfo/users'>Users</a> 
@@ -212,7 +215,7 @@ New software releases and available services are announced here as well.
 EOF;
 
 $toggle = new PlekitToggle ('create-slice-details','Slice Details',
-                           array ('visible'=>get_arg('show_slice',true)));
+                           array ('visible'=>get_arg('show_slice')));
 $details = new PlekitDetails(TRUE);
 
 $form_variables = array('site_id'=>plc_my_site_id());
@@ -262,6 +265,10 @@ $instantiation_text = <<< EOF
 <p>PLC instantiated slices can be defined as <span class='bold'>OMF friendly</span>, 
 in which case slivers come with the OMF <span class='bold'>Resource Controller</span> pre-installed and pre-configured. 
 Such slivers can then be easily managed through a centralized tool, the OMF Experiment Controller.
+Using these <a href="http://omf.mytestbed.net">OMF tools</a>, a user can describe, instrument, 
+and automatically execute their experiments across many slivers.
+Please refer to <a href="http://mytestbed.net/wiki/omf/OMF_User_Guide">the OMF User Guide</a> 
+to learn more on how to use this feature.
 </p>
 </div>
 EOF;
@@ -274,7 +281,7 @@ $toggle->end();
 if ($persons) {
   $title = count($persons) . " people can be added in slice";
   $toggle=new PlekitToggle ('create-slice-persons',$title,
-                         array('visible'=>get_arg('show_persons',true)));
+                         array('visible'=>get_arg('show_persons')));
   $toggle->start();
   
   $headers = array();