Changeset 5d87396 in orbit for iOS


Ignore:
Timestamp:
08/29/13 07:09:05 (6 years ago)
Author:
Steve Castellotti <sc@…>
Branches:
master, Servo, Tab_Interface, pyramid
Children:
5514caf
Parents:
99d222a
Message:

Support:

  • Email contact passed to CGI-BIN script
Location:
iOS/Orbit
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • iOS/Orbit/Orbit/controllers/SupportViewController.m

    r99d222a r5d87396  
    4848-(BOOL) webView:(UIWebView *)inWeb shouldStartLoadWithRequest:(NSURLRequest *)inRequest navigationType:(UIWebViewNavigationType)inType { 
    4949    
     50   // UIWebViewNavigationType 
     51//   UIWebViewNavigationTypeLinkClicked, 
     52//   UIWebViewNavigationTypeFormSubmitted, 
     53//   UIWebViewNavigationTypeBackForward, 
     54//   UIWebViewNavigationTypeReload, 
     55//   UIWebViewNavigationTypeFormResubmitted, 
     56//   UIWebViewNavigationTypeOther 
     57    
    5058   // Launch clicked links in Safari 
    5159   if ( inType == UIWebViewNavigationTypeLinkClicked ) { 
     
    5563    
    5664   // Launch form results in Safari 
    57    if ( inType == UIWebViewNavigationTypeFormSubmitted ) { 
    58       [[UIApplication sharedApplication] openURL:[inRequest URL]]; 
    59       return NO; 
    60    } 
     65//   if ( inType == UIWebViewNavigationTypeFormSubmitted ) { 
     66//      [[UIApplication sharedApplication] openURL:[inRequest URL]]; 
     67//      return NO; 
     68//   } 
     69    
     70   // Launch reloaded results in Safari 
     71//      if ( inType == UIWebViewNavigationTypeReload ) { 
     72//         [[UIApplication sharedApplication] openURL:[inRequest URL]]; 
     73//         return NO; 
     74//      } 
    6175    
    6276   return YES; 
  • iOS/Orbit/Orbit/en.lproj/MainStoryboard.storyboard

    r4a56cfb r5d87396  
    468468        <image name="tab_welcome-30x30.png" width="30" height="30"/> 
    469469    </resources> 
     470    <classes> 
     471        <class className="AdvancedViewController" superclassName="UIViewController"> 
     472            <source key="sourceIdentifier" type="project" relativePath="./Classes/AdvancedViewController.h"/> 
     473            <relationships> 
     474                <relationship kind="action" name="pitchChanged:"/> 
     475                <relationship kind="action" name="resetButtonPressed:"/> 
     476                <relationship kind="action" name="throttleChanged:"/> 
     477                <relationship kind="action" name="yawChanged:"/> 
     478                <relationship kind="outlet" name="pitch" candidateClass="UISlider"/> 
     479                <relationship kind="outlet" name="pitchPercent" candidateClass="UILabel"/> 
     480                <relationship kind="outlet" name="resetButton" candidateClass="UIBarButtonItem"/> 
     481                <relationship kind="outlet" name="throttle" candidateClass="UISlider"/> 
     482                <relationship kind="outlet" name="throttlePercent" candidateClass="UILabel"/> 
     483                <relationship kind="outlet" name="yaw" candidateClass="UISlider"/> 
     484                <relationship kind="outlet" name="yawPercent" candidateClass="UILabel"/> 
     485            </relationships> 
     486        </class> 
     487        <class className="FlightViewController" superclassName="UIViewController"> 
     488            <source key="sourceIdentifier" type="project" relativePath="./Classes/FlightViewController.h"/> 
     489            <relationships> 
     490                <relationship kind="action" name="connectButtonPressed:"/> 
     491                <relationship kind="action" name="testButtonPressed:"/> 
     492                <relationship kind="outlet" name="attention" candidateClass="UIProgressView"/> 
     493                <relationship kind="outlet" name="attentionPercent" candidateClass="UILabel"/> 
     494                <relationship kind="outlet" name="attentionThreshold" candidateClass="UISlider"/> 
     495                <relationship kind="outlet" name="connectButton" candidateClass="UIBarButtonItem"/> 
     496                <relationship kind="outlet" name="meditation" candidateClass="UIProgressView"/> 
     497                <relationship kind="outlet" name="meditationPercent" candidateClass="UILabel"/> 
     498                <relationship kind="outlet" name="meditationThreshold" candidateClass="UISlider"/> 
     499                <relationship kind="outlet" name="power" candidateClass="UIProgressView"/> 
     500                <relationship kind="outlet" name="powerPercent" candidateClass="UILabel"/> 
     501                <relationship kind="outlet" name="signal" candidateClass="UIProgressView"/> 
     502                <relationship kind="outlet" name="signalPercent" candidateClass="UILabel"/> 
     503                <relationship kind="outlet" name="statusImage" candidateClass="UIImageView"/> 
     504                <relationship kind="outlet" name="testButton" candidateClass="UIBarButtonItem"/> 
     505            </relationships> 
     506        </class> 
     507        <class className="SupportViewController" superclassName="UIViewController"> 
     508            <source key="sourceIdentifier" type="project" relativePath="./Classes/SupportViewController.h"/> 
     509            <relationships> 
     510                <relationship kind="action" name="retryButtonPressed:"/> 
     511                <relationship kind="outlet" name="retryButton" candidateClass="UIButton"/> 
     512                <relationship kind="outlet" name="status" candidateClass="UILabel"/> 
     513                <relationship kind="outlet" name="webView" candidateClass="UIWebView"/> 
     514            </relationships> 
     515        </class> 
     516        <class className="TutorialViewController" superclassName="UIViewController"> 
     517            <source key="sourceIdentifier" type="project" relativePath="./Classes/TutorialViewController.h"/> 
     518            <relationships> 
     519                <relationship kind="outlet" name="webView" candidateClass="UIWebView"/> 
     520            </relationships> 
     521        </class> 
     522    </classes> 
    470523    <simulatedMetricsContainer key="defaultSimulatedMetrics"> 
    471524        <simulatedStatusBarMetrics key="statusBar"/> 
  • iOS/Orbit/tutorial/support.html

    r2e79fbc r5d87396  
    160160                
    161161                
    162                 
     162<!-- 
    163163               <form action="http://orbit.puzzlebox.info/contact/" id="contactForm" method="post" class="clearfix"> 
    164164               <ul class="contactform"> 
     
    177177               <li class="button"> 
    178178               <input type="hidden" name="submitted" id="submitted" value="true" /> 
     179               <input type="hidden" name="source" id="iOS" value="true" /> 
    179180               <button name="submit" type="submit" id="submit" tabindex="5"><span class="icon"><span class="arrow"></span></span>Send Email</button> 
    180181               </li> 
    181182               </ul> 
    182183               </form> 
     184  
     185--> 
     186                
     187                
     188                
     189               <form action="https://puzzlebox.info/cgi-bin/puzzlebox/support_contact/contact.py" id="contactForm" method="post" class="clearfix"> 
     190               <ul class="contactform"> 
     191               <li><label for="contactName">Name:</label> 
     192               <input type="text" name="contactName" id="contactName" value="" class="required requiredField large input-text" /> 
     193               </li> 
     194                
     195               <li><label for="email">Email:</label> 
     196               <input type="text" name="email" id="email" value="" class="required requiredField email large input-text" /> 
     197               </li> 
     198                
     199               <li class="textarea"><label for="commentsText">Message:</label> 
     200               <textarea name="comments" id="commentsText" rows="2" cols="30" class="required requiredField form.nice textarea"></textarea> 
     201               </li> 
     202                
     203               <li class="button"> 
     204               <input type="hidden" name="submitted" id="submitted" value="true" /> 
     205               <input type="hidden" name="source" id="iOS" value="true" /> 
     206               <button name="submit" type="submit" id="submit" tabindex="5"><span class="icon"><span class="arrow"></span></span>Send Email</button> 
     207               </li> 
     208               </ul> 
     209               </form> 
     210 
     211  
     212                
     213                
     214                
     215                
     216                
    183217                
    184218                                        </div> 
Note: See TracChangeset for help on using the changeset viewer.